@@ -6,11 +6,31 @@ interface Foo {
66}
77
88class C {
9- protected readonly y : number ;
109 readonly [ x : string ] : Object ;
11- private static readonly a = "foo" ;
12- protected static readonly b = "foo" ;
13- public static readonly c = "foo" ;
10+ private readonly a1 : number ;
11+ protected readonly a2 : number ;
12+ public readonly a3 : number ;
13+ private get b1 ( ) { return 1 }
14+ protected get b2 ( ) { return 1 }
15+ public get b3 ( ) { return 1 }
16+ private get c1 ( ) { return 1 }
17+ private set c1 ( value ) { }
18+ protected get c2 ( ) { return 1 }
19+ protected set c2 ( value ) { }
20+ public get c3 ( ) { return 1 }
21+ public set c3 ( value ) { }
22+ private static readonly s1 : number ;
23+ protected static readonly s2 : number ;
24+ public static readonly s3 : number ;
25+ private static get t1 ( ) { return 1 }
26+ protected static get t2 ( ) { return 1 }
27+ public static get t3 ( ) { return 1 }
28+ private static get u1 ( ) { return 1 }
29+ private static set u1 ( value ) { }
30+ protected static get u2 ( ) { return 1 }
31+ protected static set u2 ( value ) { }
32+ public static get u3 ( ) { return 1 }
33+ public static set u3 ( value ) { }
1434}
1535
1636var z : {
@@ -38,9 +58,72 @@ function g() {
3858var C = ( function ( ) {
3959 function C ( ) {
4060 }
41- C . a = "foo" ;
42- C . b = "foo" ;
43- C . c = "foo" ;
61+ Object . defineProperty ( C . prototype , "b1" , {
62+ get : function ( ) { return 1 ; } ,
63+ enumerable : true ,
64+ configurable : true
65+ } ) ;
66+ Object . defineProperty ( C . prototype , "b2" , {
67+ get : function ( ) { return 1 ; } ,
68+ enumerable : true ,
69+ configurable : true
70+ } ) ;
71+ Object . defineProperty ( C . prototype , "b3" , {
72+ get : function ( ) { return 1 ; } ,
73+ enumerable : true ,
74+ configurable : true
75+ } ) ;
76+ Object . defineProperty ( C . prototype , "c1" , {
77+ get : function ( ) { return 1 ; } ,
78+ set : function ( value ) { } ,
79+ enumerable : true ,
80+ configurable : true
81+ } ) ;
82+ Object . defineProperty ( C . prototype , "c2" , {
83+ get : function ( ) { return 1 ; } ,
84+ set : function ( value ) { } ,
85+ enumerable : true ,
86+ configurable : true
87+ } ) ;
88+ Object . defineProperty ( C . prototype , "c3" , {
89+ get : function ( ) { return 1 ; } ,
90+ set : function ( value ) { } ,
91+ enumerable : true ,
92+ configurable : true
93+ } ) ;
94+ Object . defineProperty ( C , "t1" , {
95+ get : function ( ) { return 1 ; } ,
96+ enumerable : true ,
97+ configurable : true
98+ } ) ;
99+ Object . defineProperty ( C , "t2" , {
100+ get : function ( ) { return 1 ; } ,
101+ enumerable : true ,
102+ configurable : true
103+ } ) ;
104+ Object . defineProperty ( C , "t3" , {
105+ get : function ( ) { return 1 ; } ,
106+ enumerable : true ,
107+ configurable : true
108+ } ) ;
109+ Object . defineProperty ( C , "u1" , {
110+ get : function ( ) { return 1 ; } ,
111+ set : function ( value ) { } ,
112+ enumerable : true ,
113+ configurable : true
114+ } ) ;
115+ Object . defineProperty ( C , "u2" , {
116+ get : function ( ) { return 1 ; } ,
117+ set : function ( value ) { } ,
118+ enumerable : true ,
119+ configurable : true
120+ } ) ;
121+ Object . defineProperty ( C , "u3" , {
122+ get : function ( ) { return 1 ; } ,
123+ set : function ( value ) { } ,
124+ enumerable : true ,
125+ configurable : true
126+ } ) ;
44127 return C ;
45128} ( ) ) ;
46129var z ;
@@ -63,11 +146,25 @@ interface Foo {
63146 readonly [ x : string ] : Object ;
64147}
65148declare class C {
66- protected readonly y : number ;
67149 readonly [ x : string ] : Object ;
68- private static readonly a ;
69- protected static readonly b : string ;
70- static readonly c : string ;
150+ private readonly a1 ;
151+ protected readonly a2 : number ;
152+ readonly a3 : number ;
153+ private readonly b1 ;
154+ protected readonly b2 : number ;
155+ readonly b3 : number ;
156+ private c1 ;
157+ protected c2 : number ;
158+ c3 : number ;
159+ private static readonly s1 ;
160+ protected static readonly s2 : number ;
161+ static readonly s3 : number ;
162+ private static readonly t1 ;
163+ protected static readonly t2 : number ;
164+ static readonly t3 : number ;
165+ private static u1 ;
166+ protected static u2 : number ;
167+ static u3 : number ;
71168}
72169declare var z: {
73170 readonly a : string ;
0 commit comments