23 lines
489 B
Text
23 lines
489 B
Text
=== tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_1.ts ===
|
|
///<reference path='exportAssignedTypeAsTypeAnnotation_0.ts'/>
|
|
import test = require('exportAssignedTypeAsTypeAnnotation_0');
|
|
>test : any
|
|
|
|
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
|
|
|