121 lines
4.4 KiB
Text
121 lines
4.4 KiB
Text
=== tests/cases/compiler/moduleAliasInterface.ts ===
|
|
module _modes {
|
|
>_modes : Symbol(_modes, Decl(moduleAliasInterface.ts, 0, 0))
|
|
|
|
export interface IMode {
|
|
>IMode : Symbol(IMode, Decl(moduleAliasInterface.ts, 0, 15))
|
|
|
|
}
|
|
|
|
export class Mode {
|
|
>Mode : Symbol(Mode, Decl(moduleAliasInterface.ts, 3, 2))
|
|
|
|
}
|
|
}
|
|
|
|
// _modes. // produces an internal error - please implement in derived class
|
|
|
|
module editor {
|
|
>editor : Symbol(editor, Decl(moduleAliasInterface.ts, 8, 1))
|
|
|
|
import modes = _modes;
|
|
>modes : Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15))
|
|
>_modes : Symbol(modes, Decl(moduleAliasInterface.ts, 0, 0))
|
|
|
|
var i : modes.IMode;
|
|
>i : Symbol(i, Decl(moduleAliasInterface.ts, 15, 4))
|
|
>modes : Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15))
|
|
>IMode : Symbol(modes.IMode, Decl(moduleAliasInterface.ts, 0, 15))
|
|
|
|
// If you just use p1:modes, the compiler accepts it - should be an error
|
|
class Bug {
|
|
>Bug : Symbol(Bug, Decl(moduleAliasInterface.ts, 15, 21))
|
|
|
|
constructor(p1: modes.IMode, p2: modes.Mode) { }// should be an error on p2 - it's not exported
|
|
>p1 : Symbol(p1, Decl(moduleAliasInterface.ts, 19, 14))
|
|
>modes : Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15))
|
|
>IMode : Symbol(modes.IMode, Decl(moduleAliasInterface.ts, 0, 15))
|
|
>p2 : Symbol(p2, Decl(moduleAliasInterface.ts, 19, 30))
|
|
>modes : Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15))
|
|
>Mode : Symbol(modes.Mode, Decl(moduleAliasInterface.ts, 3, 2))
|
|
|
|
public foo(p1:modes.IMode) {
|
|
>foo : Symbol(foo, Decl(moduleAliasInterface.ts, 19, 50))
|
|
>p1 : Symbol(p1, Decl(moduleAliasInterface.ts, 20, 13))
|
|
>modes : Symbol(modes, Decl(moduleAliasInterface.ts, 12, 15))
|
|
>IMode : Symbol(modes.IMode, Decl(moduleAliasInterface.ts, 0, 15))
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
import modesOuter = _modes;
|
|
>modesOuter : Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1))
|
|
>_modes : Symbol(_modes, Decl(moduleAliasInterface.ts, 0, 0))
|
|
|
|
module editor2 {
|
|
>editor2 : Symbol(editor2, Decl(moduleAliasInterface.ts, 26, 27))
|
|
|
|
var i : modesOuter.IMode;
|
|
>i : Symbol(i, Decl(moduleAliasInterface.ts, 29, 4))
|
|
>modesOuter : Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1))
|
|
>IMode : Symbol(modesOuter.IMode, Decl(moduleAliasInterface.ts, 0, 15))
|
|
|
|
class Bug {
|
|
>Bug : Symbol(Bug, Decl(moduleAliasInterface.ts, 29, 26))
|
|
|
|
constructor(p1: modesOuter.IMode, p2: modesOuter.Mode) { }// no error here, since modesOuter is declared externally
|
|
>p1 : Symbol(p1, Decl(moduleAliasInterface.ts, 32, 17))
|
|
>modesOuter : Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1))
|
|
>IMode : Symbol(modesOuter.IMode, Decl(moduleAliasInterface.ts, 0, 15))
|
|
>p2 : Symbol(p2, Decl(moduleAliasInterface.ts, 32, 38))
|
|
>modesOuter : Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1))
|
|
>Mode : Symbol(modesOuter.Mode, Decl(moduleAliasInterface.ts, 3, 2))
|
|
|
|
}
|
|
|
|
module Foo { export class Bar{} }
|
|
>Foo : Symbol(Foo, Decl(moduleAliasInterface.ts, 34, 2))
|
|
>Bar : Symbol(Bar, Decl(moduleAliasInterface.ts, 36, 14))
|
|
|
|
class Bug2 {
|
|
>Bug2 : Symbol(Bug2, Decl(moduleAliasInterface.ts, 36, 35))
|
|
|
|
constructor(p1: Foo.Bar, p2: modesOuter.Mode) { }
|
|
>p1 : Symbol(p1, Decl(moduleAliasInterface.ts, 39, 18))
|
|
>Foo : Symbol(Foo, Decl(moduleAliasInterface.ts, 34, 2))
|
|
>Bar : Symbol(Foo.Bar, Decl(moduleAliasInterface.ts, 36, 14))
|
|
>p2 : Symbol(p2, Decl(moduleAliasInterface.ts, 39, 30))
|
|
>modesOuter : Symbol(modesOuter, Decl(moduleAliasInterface.ts, 24, 1))
|
|
>Mode : Symbol(modesOuter.Mode, Decl(moduleAliasInterface.ts, 3, 2))
|
|
}
|
|
}
|
|
|
|
module A1 {
|
|
>A1 : Symbol(A1, Decl(moduleAliasInterface.ts, 41, 1))
|
|
|
|
export interface A1I1 {}
|
|
>A1I1 : Symbol(A1I1, Decl(moduleAliasInterface.ts, 43, 11))
|
|
|
|
export class A1C1 {}
|
|
>A1C1 : Symbol(A1C1, Decl(moduleAliasInterface.ts, 44, 28))
|
|
}
|
|
|
|
module B1 {
|
|
>B1 : Symbol(B1, Decl(moduleAliasInterface.ts, 46, 1))
|
|
|
|
import A1Alias1 = A1;
|
|
>A1Alias1 : Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 48, 11))
|
|
>A1 : Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 41, 1))
|
|
|
|
var i : A1Alias1.A1I1;
|
|
>i : Symbol(i, Decl(moduleAliasInterface.ts, 51, 7))
|
|
>A1Alias1 : Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 48, 11))
|
|
>A1I1 : Symbol(A1Alias1.A1I1, Decl(moduleAliasInterface.ts, 43, 11))
|
|
|
|
var c : A1Alias1.A1C1;
|
|
>c : Symbol(c, Decl(moduleAliasInterface.ts, 52, 7))
|
|
>A1Alias1 : Symbol(A1Alias1, Decl(moduleAliasInterface.ts, 48, 11))
|
|
>A1C1 : Symbol(A1Alias1.A1C1, Decl(moduleAliasInterface.ts, 44, 28))
|
|
}
|
|
|