7 lines
185 B
TypeScript
7 lines
185 B
TypeScript
//// [objectLitStructuralTypeMismatch.ts]
|
|
// Shouldn't compile
|
|
var x: { a: number; } = { b: 5 };
|
|
|
|
//// [objectLitStructuralTypeMismatch.js]
|
|
// Shouldn't compile
|
|
var x = { b: 5 };
|