17 lines
No EOL
659 B
Text
17 lines
No EOL
659 B
Text
==== tests/cases/compiler/aliasAssignments_1.ts (2 errors) ====
|
|
import moduleA = require("aliasAssignments_moduleA");
|
|
var x = moduleA;
|
|
x = 1; // Should be error
|
|
~
|
|
!!! Type 'number' is not assignable to type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"':
|
|
!!! Property 'someClass' is missing in type 'Number'.
|
|
var y = 1;
|
|
y = moduleA; // should be error
|
|
~
|
|
!!! Type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"' is not assignable to type 'number'.
|
|
|
|
==== tests/cases/compiler/aliasAssignments_moduleA.ts (0 errors) ====
|
|
export class someClass {
|
|
public someData: string;
|
|
}
|
|
|