mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +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
|