15 lines
No EOL
545 B
Text
15 lines
No EOL
545 B
Text
==== 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'.
|
|
}];
|
|
|
|
|