TypeScript/tests/baselines/reference/undefinedSymbolReferencedInArrayLiteral1.errors.txt

15 lines
545 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/undefinedSymbolReferencedInArrayLiteral1.ts (3 errors) ====
var tokens = [{ startIndex: deltaOffset }];
~~~~~~~~~~~
!!! Cannot find name 'deltaOffset'.
var functions = [function() {
[1, 2, 3].NonexistantMethod();
~~~~~~~~~~~~~~~~~
!!! Property 'NonexistantMethod' does not exist on type 'number[]'.
anotherNonExistingMethod();
~~~~~~~~~~~~~~~~~~~~~~~~
!!! Cannot find name 'anotherNonExistingMethod'.
}];