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

54 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-03-02 21:21:53 +01:00
tests/cases/compiler/aliasErrors.ts(11,12): error TS2304: Cannot find name 'no'.
tests/cases/compiler/aliasErrors.ts(12,13): error TS2304: Cannot find name 'no'.
tests/cases/compiler/aliasErrors.ts(13,12): error TS1003: Identifier expected.
tests/cases/compiler/aliasErrors.ts(14,12): error TS1003: Identifier expected.
tests/cases/compiler/aliasErrors.ts(15,12): error TS1003: Identifier expected.
2015-03-02 21:21:53 +01:00
tests/cases/compiler/aliasErrors.ts(16,12): error TS2304: Cannot find name 'undefined'.
tests/cases/compiler/aliasErrors.ts(26,15): error TS2305: Module 'foo.bar.baz' has no exported member 'bar'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/aliasErrors.ts (7 errors) ====
module foo {
export class Provide {
}
export module bar { export module baz {export class boo {}}}
}
import provide = foo;
import booz = foo.bar.baz;
import beez = foo.bar;
import m = no;
2015-03-02 21:21:53 +01:00
~~
!!! error TS2304: Cannot find name 'no'.
2014-07-13 01:04:16 +02:00
import m2 = no.mod;
2015-03-02 21:21:53 +01:00
~~
!!! error TS2304: Cannot find name 'no'.
2014-07-13 01:04:16 +02:00
import n = 5;
~
!!! error TS1003: Identifier expected.
2014-07-13 01:04:16 +02:00
import o = "s";
~~~
!!! error TS1003: Identifier expected.
2014-07-13 01:04:16 +02:00
import q = null;
~~~~
!!! error TS1003: Identifier expected.
2014-07-13 01:04:16 +02:00
import r = undefined;
2015-03-02 21:21:53 +01:00
~~~~~~~~~
!!! error TS2304: Cannot find name 'undefined'.
2014-07-13 01:04:16 +02:00
var p = new provide.Provide();
function use() {
beez.baz.boo;
var p1: provide.Provide;
var p2: foo.Provide;
var p3:booz.bar;
2015-03-02 21:21:53 +01:00
~~~
!!! error TS2305: Module 'foo.bar.baz' has no exported member 'bar'.
2014-07-13 01:04:16 +02:00
var p22 = new provide.Provide();
}