2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_1.ts ===
|
|
|
|
///<reference path='exportAssignedTypeAsTypeAnnotation_0.ts'/>
|
|
|
|
import test = require('exportAssignedTypeAsTypeAnnotation_0');
|
2014-08-28 21:40:58 +02:00
|
|
|
>test : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var t2: test; // should not raise a 'container type' error
|
2014-08-25 19:36:12 +02:00
|
|
|
>t2 : test
|
|
|
|
>test : test
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/exportAssignedTypeAsTypeAnnotation_0.ts ===
|
|
|
|
|
|
|
|
interface x {
|
|
|
|
>x : x
|
|
|
|
|
|
|
|
(): Date;
|
|
|
|
>Date : Date
|
|
|
|
|
|
|
|
foo: string;
|
|
|
|
>foo : string
|
|
|
|
}
|
|
|
|
export = x;
|
|
|
|
>x : x
|
|
|
|
|