TypeScript/tests/baselines/reference/objectLitStructuralTypeMismatch.js

8 lines
185 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [objectLitStructuralTypeMismatch.ts]
// Shouldn't compile
var x: { a: number; } = { b: 5 };
//// [objectLitStructuralTypeMismatch.js]
// Shouldn't compile
var x = { b: 5 };