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

15 lines
587 B
Plaintext

==== tests/cases/compiler/undefinedSymbolReferencedInArrayLiteral1.ts (3 errors) ====
var tokens = [{ startIndex: deltaOffset }];
~~~~~~~~~~~
!!! error TS2304: Cannot find name 'deltaOffset'.
var functions = [function() {
[1, 2, 3].NonexistantMethod();
~~~~~~~~~~~~~~~~~
!!! error TS2339: Property 'NonexistantMethod' does not exist on type 'number[]'.
anotherNonExistingMethod();
~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'anotherNonExistingMethod'.
}];