mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
744 B
Plaintext
24 lines
744 B
Plaintext
cloduleStaticMembers.ts(6,18): error TS2341: Property 'x' is private and only accessible within class 'Clod'.
|
|
cloduleStaticMembers.ts(7,13): error TS2304: Cannot find name 'x'.
|
|
cloduleStaticMembers.ts(10,13): error TS2304: Cannot find name 'y'.
|
|
|
|
|
|
==== cloduleStaticMembers.ts (3 errors) ====
|
|
class Clod {
|
|
private static x = 10;
|
|
public static y = 10;
|
|
}
|
|
namespace Clod {
|
|
var p = Clod.x;
|
|
~
|
|
!!! error TS2341: Property 'x' is private and only accessible within class 'Clod'.
|
|
var q = x;
|
|
~
|
|
!!! error TS2304: Cannot find name 'x'.
|
|
|
|
var s = Clod.y;
|
|
var t = y;
|
|
~
|
|
!!! error TS2304: Cannot find name 'y'.
|
|
}
|
|
|