TypeScript/tests/baselines/reference/importUsedInExtendsList1.types
2015-04-15 16:44:20 -07:00

27 lines
558 B
Plaintext

=== tests/cases/compiler/importUsedInExtendsList1_1.ts ===
///<reference path='importUsedInExtendsList1_require.ts'/>
import foo = require('importUsedInExtendsList1_require');
>foo : typeof foo
class Sub extends foo.Super { }
>Sub : Sub
>foo.Super : any
>foo : typeof foo
>Super : foo.Super
var s: Sub;
>s : Sub
>Sub : Sub
var r: string = s.foo;
>r : string
>s.foo : string
>s : Sub
>foo : string
=== tests/cases/compiler/importUsedInExtendsList1_require.ts ===
export class Super { foo: string; }
>Super : Super
>foo : string