TypeScript/tests/baselines/reference/typeofAmbientExternalModules.errors.txt
2014-07-12 17:30:19 -07:00

23 lines
1 KiB
Plaintext

==== 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;
~~
!!! Type 'typeof D' is not assignable to type 'typeof "tests/cases/compiler/typeofAmbientExternalModules_0"':
!!! Property 'C' is missing in type 'typeof D'.
var y2: typeof exp = exp;
y2 = ext;
~~
!!! 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"'.
==== 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;