mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +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
|