24 lines
493 B
Plaintext
24 lines
493 B
Plaintext
=== tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_1.ts ===
|
|
///<reference path='exportAssignedTypeAsTypeAnnotation_0.ts'/>
|
|
import test = require('exportAssignedTypeAsTypeAnnotation_0');
|
|
>test : unknown
|
|
|
|
var t2: test; // should not raise a 'container type' error
|
|
>t2 : test
|
|
>test : test
|
|
|
|
=== tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_0.ts ===
|
|
|
|
interface x {
|
|
>x : x
|
|
|
|
(): Date;
|
|
>Date : Date
|
|
|
|
foo: string;
|
|
>foo : string
|
|
}
|
|
export = x;
|
|
>x : x
|
|
|