@@ -188,10 +188,10 @@ Output::
188188[ 7 m3 [ 0 m console . log ( person . message ) ;
189189[ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ [ 0 m
190190
191- [ 96 msrc / project / MessageablePerson . ts [ 0 m :[ 93 m6 [ 0 m :[ 93 m7 [ 0 m - [ 91 merror [ 0 m [ 90 m TS4094 : [ 0 mProperty 'message' of exported class expression may not be private or protected .
191+ [ 96 msrc / project / MessageablePerson . ts [ 0 m :[ 93 m6 [ 0 m :[ 93 m17 [ 0 m - [ 91 merror [ 0 m [ 90 m TS4094 : [ 0 mProperty 'message' of exported class expression may not be private or protected .
192192
193193[ 7 m6 [ 0 m const wrapper = ( ) => Messageable ( ) ;
194- [ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ [ 0 m
194+ [ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [ 0 m
195195
196196
197197Found 2 errors in 2 files .
@@ -206,7 +206,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
206206//// [/src/project/main.js] file written with same contents
207207//// [/src/project/MessageablePerson.js] file written with same contents
208208//// [/src/project/tsconfig.tsbuildinfo]
209- { "program" :{ "fileNames" :[ "../../lib/lib.d.ts" , "./messageableperson.ts" , "./main.ts" ] , "fileInfos" :[ { "version" :"5700251342-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;" , "affectsGlobalScope" :true } , { "version" :"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;" , "signature" :"-21450256696-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;\n(116,7)Error4094: Property 'message' of exported class expression may not be private or protected." } , { "version" :"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}" , "signature" :"-3531856636-export {};\n" } ] , "root" :[ 2 , 3 ] , "options" :{ "declaration" :true } , "fileIdsList" :[ [ 2 ] ] , "referencedMap" :[ [ 3 , 1 ] ] , "exportedModulesMap" :[ ] , "semanticDiagnosticsPerFile" :[ 1 , [ 3 , [ { "file" :"./main.ts" , "start" :131 , "length" :7 , "messageText" :"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses." , "category" :1 , "code" :2445 } ] ] , 2 ] , "emitDiagnosticsPerFile" :[ [ 2 , [ { "file" :"./messageableperson.ts" , "start" :116 , "length" :7 , "messageText" :"Property 'message' of exported class expression may not be private or protected." , "category" :1 , "code" :4094 } ] ] ] } , "version" :"FakeTSVersion" }
209+ { "program" :{ "fileNames" :[ "../../lib/lib.d.ts" , "./messageableperson.ts" , "./main.ts" ] , "fileInfos" :[ { "version" :"5700251342-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;\ntype InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;" , "affectsGlobalScope" :true } , { "version" :"3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;" , "signature" :"-36832008228-declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;\n(126,19)Error4094: Property 'message' of exported class expression may not be private or protected." } , { "version" :"4191603667-import MessageablePerson from './MessageablePerson.js';\nfunction logMessage( person: MessageablePerson ) {\n console.log( person.message );\n}" , "signature" :"-3531856636-export {};\n" } ] , "root" :[ 2 , 3 ] , "options" :{ "declaration" :true } , "fileIdsList" :[ [ 2 ] ] , "referencedMap" :[ [ 3 , 1 ] ] , "exportedModulesMap" :[ ] , "semanticDiagnosticsPerFile" :[ 1 , [ 3 , [ { "file" :"./main.ts" , "start" :131 , "length" :7 , "messageText" :"Property 'message' is protected and only accessible within class 'MessageableClass' and its subclasses." , "category" :1 , "code" :2445 } ] ] , 2 ] , "emitDiagnosticsPerFile" :[ [ 2 , [ { "file" :"./messageableperson.ts" , "start" :126 , "length" :19 , "messageText" :"Property 'message' of exported class expression may not be private or protected." , "category" :1 , "code" :4094 } ] ] ] } , "version" :"FakeTSVersion" }
210210
211211//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt]
212212{
@@ -234,10 +234,10 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
234234 "./messageableperson.ts" : {
235235 "original" : {
236236 "version" : "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;" ,
237- "signature" : "-21450256696 -declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;\n(116,7 )Error4094: Property 'message' of exported class expression may not be private or protected."
237+ "signature" : "-36832008228 -declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;\n(126,19 )Error4094: Property 'message' of exported class expression may not be private or protected."
238238 } ,
239239 "version" : "3462418372-const Messageable = () => {\n return class MessageableClass {\n protected message = 'hello';\n }\n};\nconst wrapper = () => Messageable();\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;" ,
240- "signature" : "-21450256696 -declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;\n(116,7 )Error4094: Property 'message' of exported class expression may not be private or protected."
240+ "signature" : "-36832008228 -declare const wrapper: () => {\n new (): {\n message: string;\n };\n};\ntype MessageablePerson = InstanceType<ReturnType<typeof wrapper>>;\nexport default MessageablePerson;\n(126,19 )Error4094: Property 'message' of exported class expression may not be private or protected."
241241 } ,
242242 "./main.ts" : {
243243 "original" : {
@@ -290,8 +290,8 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
290290 [
291291 {
292292 "file" : "./messageableperson.ts" ,
293- "start" : 116 ,
294- "length" : 7 ,
293+ "start" : 126 ,
294+ "length" : 19 ,
295295 "messageText" : "Property 'message' of exported class expression may not be private or protected." ,
296296 "category" : 1 ,
297297 "code" : 4094
@@ -301,7 +301,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
301301 ]
302302 } ,
303303 "version" : "FakeTSVersion" ,
304- "size" : 2187
304+ "size" : 2189
305305}
306306
307307
@@ -317,10 +317,10 @@ Output::
317317[ 7 m3 [ 0 m console . log ( person . message ) ;
318318[ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ [ 0 m
319319
320- [ 96 msrc / project / MessageablePerson . ts [ 0 m :[ 93 m6 [ 0 m :[ 93 m7 [ 0 m - [ 91 merror [ 0 m [ 90 m TS4094 : [ 0 mProperty 'message' of exported class expression may not be private or protected .
320+ [ 96 msrc / project / MessageablePerson . ts [ 0 m :[ 93 m6 [ 0 m :[ 93 m17 [ 0 m - [ 91 merror [ 0 m [ 90 m TS4094 : [ 0 mProperty 'message' of exported class expression may not be private or protected .
321321
322322[ 7 m6 [ 0 m const wrapper = ( ) => Messageable ( ) ;
323- [ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ [ 0 m
323+ [ 7 m [ 0 m [ 91 m ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [ 0 m
324324
325325
326326Found 2 errors in 2 files .
0 commit comments