42 lines
669 B
Plaintext
42 lines
669 B
Plaintext
|
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
||
|
import foo = require("./foo_0");
|
||
|
>foo : typeof foo
|
||
|
|
||
|
var color: foo;
|
||
|
>color : foo
|
||
|
>foo : foo
|
||
|
|
||
|
if(color === foo.green){
|
||
|
>color === foo.green : boolean
|
||
|
>color : foo
|
||
|
>foo.green : foo
|
||
|
>foo : typeof foo
|
||
|
>green : foo
|
||
|
|
||
|
color = foo.answer;
|
||
|
>color = foo.answer : number
|
||
|
>color : foo
|
||
|
>foo.answer : number
|
||
|
>foo : typeof foo
|
||
|
>answer : number
|
||
|
}
|
||
|
|
||
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
||
|
enum foo {
|
||
|
>foo : foo
|
||
|
|
||
|
red, green, blue
|
||
|
>red : foo
|
||
|
>green : foo
|
||
|
>blue : foo
|
||
|
}
|
||
|
module foo {
|
||
|
>foo : typeof foo
|
||
|
|
||
|
export var answer = 42;
|
||
|
>answer : number
|
||
|
}
|
||
|
export = foo;
|
||
|
>foo : foo
|
||
|
|