mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
9 lines
176 B
TypeScript
9 lines
176 B
TypeScript
|
// @declaration: true
|
||
|
interface WithNonPrimitive {
|
||
|
foo: object
|
||
|
}
|
||
|
|
||
|
var a: WithNonPrimitive = { foo: {bar: "bar"} };
|
||
|
|
||
|
var b: WithNonPrimitive = {foo: "bar"}; // expect error
|