TypeScript/tests/baselines/reference/importUsedInExtendsList1.types
2014-08-28 12:40:58 -07:00

26 lines
537 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 : unknown
>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