TypeScript/tests/baselines/reference/objectLiteralReferencingInternalProperties.errors.txt
2014-09-11 16:11:08 -07:00

4 lines
237 B
Plaintext

==== tests/cases/compiler/objectLiteralReferencingInternalProperties.ts (1 errors) ====
var a = { b: 10, c: b }; // Should give error for attempting to reference b.
~
!!! error TS2304: Cannot find name 'b'.