TypeScript/tests/baselines/reference/typeofAmbientExternalModules.errors.txt

29 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-11-05 21:26:03 +01:00
tests/cases/compiler/typeofAmbientExternalModules_2.ts(7,1): error TS2322: Type 'typeof D' is not assignable to type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
Property 'C' is missing in type 'typeof D'.
2014-11-05 21:26:03 +01:00
tests/cases/compiler/typeofAmbientExternalModules_2.ts(9,1): error TS2322: Type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"' is not assignable to type 'typeof D'.
Property 'prototype' is missing in type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/typeofAmbientExternalModules_2.ts (2 errors) ====
///<reference path='typeofAmbientExternalModules_0.ts'/>
///<reference path='typeofAmbientExternalModules_1.ts'/>
import ext = require('typeofAmbientExternalModules_0');
import exp = require('typeofAmbientExternalModules_1');
var y1: typeof ext = ext;
y1 = exp;
~~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'typeof D' is not assignable to type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
!!! error TS2322: Property 'C' is missing in type 'typeof D'.
2014-07-13 01:04:16 +02:00
var y2: typeof exp = exp;
y2 = ext;
~~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"' is not assignable to type 'typeof D'.
!!! error TS2322: Property 'prototype' is missing in type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/typeofAmbientExternalModules_0.ts (0 errors) ====
export class C { foo: string; }
==== tests/cases/compiler/typeofAmbientExternalModules_1.ts (0 errors) ====
class D { bar: string; }
export = D;