mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
9 lines
166 B
TypeScript
9 lines
166 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
|