mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
246 B
TypeScript
13 lines
246 B
TypeScript
//// [tests/cases/compiler/contextualTyping5.ts] ////
|
|
|
|
//// [contextualTyping5.ts]
|
|
class foo { public bar:{id:number;} = { }; }
|
|
|
|
//// [contextualTyping5.js]
|
|
"use strict";
|
|
class foo {
|
|
constructor() {
|
|
this.bar = {};
|
|
}
|
|
}
|