mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
231 B
TypeScript
10 lines
231 B
TypeScript
//// [tests/cases/compiler/contextualTyping18.ts] ////
|
|
|
|
//// [contextualTyping18.ts]
|
|
var foo: {id:number;} = <{id:number;}>({ }); foo = {id: 5};
|
|
|
|
//// [contextualTyping18.js]
|
|
"use strict";
|
|
var foo = ({});
|
|
foo = { id: 5 };
|