2014-09-19 15:37:55 +02:00
|
|
|
tests/cases/compiler/cloduleStaticMembers.ts(6,13): error TS2341: Property 'x' is private and only accessible within class 'Clod'.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/cloduleStaticMembers.ts(7,13): error TS2304: Cannot find name 'x'.
|
|
|
|
tests/cases/compiler/cloduleStaticMembers.ts(10,13): error TS2304: Cannot find name 'y'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/cloduleStaticMembers.ts (3 errors) ====
|
|
|
|
class Clod {
|
|
|
|
private static x = 10;
|
|
|
|
public static y = 10;
|
|
|
|
}
|
|
|
|
module Clod {
|
|
|
|
var p = Clod.x;
|
|
|
|
~~~~~~
|
2014-09-19 15:37:55 +02:00
|
|
|
!!! error TS2341: Property 'x' is private and only accessible within class 'Clod'.
|
2014-07-13 01:04:16 +02:00
|
|
|
var q = x;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'x'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
var s = Clod.y;
|
|
|
|
var t = y;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'y'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|