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