38 lines
610 B
Text
38 lines
610 B
Text
=== tests/cases/compiler/exportAssignClassAndModule_1.ts ===
|
|
///<reference path='exportAssignClassAndModule_0.ts'/>
|
|
import Foo = require('exportAssignClassAndModule_0');
|
|
>Foo : typeof Foo
|
|
|
|
var z: Foo.Bar;
|
|
>z : Foo.Bar
|
|
>Foo : any
|
|
>Bar : Foo.Bar
|
|
|
|
var zz: Foo;
|
|
>zz : Foo
|
|
>Foo : Foo
|
|
|
|
zz.x;
|
|
>zz.x : Foo.Bar
|
|
>zz : Foo
|
|
>x : Foo.Bar
|
|
|
|
=== tests/cases/compiler/exportAssignClassAndModule_0.ts ===
|
|
class Foo {
|
|
>Foo : Foo
|
|
|
|
x: Foo.Bar;
|
|
>x : Foo.Bar
|
|
>Foo : any
|
|
>Bar : Foo.Bar
|
|
}
|
|
module Foo {
|
|
>Foo : typeof Foo
|
|
|
|
export interface Bar {
|
|
>Bar : Bar
|
|
}
|
|
}
|
|
export = Foo;
|
|
>Foo : Foo
|
|
|