2014-07-13 01:04:16 +02:00
|
|
|
//@module: commonjs
|
|
|
|
// @Filename: aliasAssignments_moduleA.ts
|
|
|
|
export class someClass {
|
|
|
|
public someData: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @Filename: aliasAssignments_1.ts
|
2015-09-15 20:43:28 +02:00
|
|
|
import moduleA = require("./aliasAssignments_moduleA");
|
2014-07-13 01:04:16 +02:00
|
|
|
var x = moduleA;
|
|
|
|
x = 1; // Should be error
|
|
|
|
var y = 1;
|
|
|
|
y = moduleA; // should be error
|