mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
9 lines
169 B
TypeScript
9 lines
169 B
TypeScript
// @lib: es5
|
|
var id: number = 10000;
|
|
var name: string = "my name";
|
|
|
|
var person = { name, id };
|
|
|
|
function foo(p: { a: string; id: number }) { }
|
|
foo(person); // error
|