mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
aliasErrors.ts(11,12): error TS2503: Cannot find namespace 'no'.
|
|
aliasErrors.ts(12,13): error TS2503: Cannot find namespace 'no'.
|
|
aliasErrors.ts(13,12): error TS1003: Identifier expected.
|
|
aliasErrors.ts(14,12): error TS1003: Identifier expected.
|
|
aliasErrors.ts(15,12): error TS1359: Identifier expected. 'null' is a reserved word that cannot be used here.
|
|
aliasErrors.ts(16,12): error TS2503: Cannot find namespace 'undefined'.
|
|
aliasErrors.ts(26,15): error TS2694: Namespace 'foo.bar.baz' has no exported member 'bar'.
|
|
|
|
|
|
==== aliasErrors.ts (7 errors) ====
|
|
namespace foo {
|
|
export class Provide {
|
|
}
|
|
export namespace bar { export namespace baz {export class boo {}}}
|
|
}
|
|
|
|
import provide = foo;
|
|
import booz = foo.bar.baz;
|
|
import beez = foo.bar;
|
|
|
|
import m = no;
|
|
~~
|
|
!!! error TS2503: Cannot find namespace 'no'.
|
|
import m2 = no.mod;
|
|
~~
|
|
!!! error TS2503: Cannot find namespace 'no'.
|
|
import n = 5;
|
|
~
|
|
!!! error TS1003: Identifier expected.
|
|
import o = "s";
|
|
~~~
|
|
!!! error TS1003: Identifier expected.
|
|
import q = null;
|
|
~~~~
|
|
!!! error TS1359: Identifier expected. 'null' is a reserved word that cannot be used here.
|
|
import r = undefined;
|
|
~~~~~~~~~
|
|
!!! error TS2503: Cannot find namespace 'undefined'.
|
|
|
|
|
|
var p = new provide.Provide();
|
|
|
|
function use() {
|
|
|
|
beez.baz.boo;
|
|
var p1: provide.Provide;
|
|
var p2: foo.Provide;
|
|
var p3:booz.bar;
|
|
~~~
|
|
!!! error TS2694: Namespace 'foo.bar.baz' has no exported member 'bar'.
|
|
var p22 = new provide.Provide();
|
|
}
|
|
|
|
|