2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/aliasErrors.ts(11,1): error TS2304: Cannot find name 'no'.
|
|
|
|
tests/cases/compiler/aliasErrors.ts(12,1): error TS2304: Cannot find name 'no'.
|
2014-09-12 22:35:07 +02:00
|
|
|
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.
|
|
|
|
tests/cases/compiler/aliasErrors.ts(16,1): error TS2304: Cannot find name 'undefined'.
|
|
|
|
tests/cases/compiler/aliasErrors.ts(26,10): 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;
|
|
|
|
~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'no'.
|
2014-07-13 01:04:16 +02:00
|
|
|
import m2 = no.mod;
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'no'.
|
2014-07-13 01:04:16 +02:00
|
|
|
import n = 5;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1003: Identifier expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
import o = "s";
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1003: Identifier expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
import q = null;
|
|
|
|
~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1003: Identifier expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
import r = undefined;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02: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;
|
|
|
|
~~~~~~~~
|
2014-09-12 00:19:57 +02: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();
|
|
|
|
}
|
|
|
|
|
|
|
|
|