Ho fatto due file dattiloscritto A.tse TestA.ts.
A.ts
class A {
constructor( private name : string ){}
disp(){ console.log( this.name ); }
}
TestA.ts
/// <reference path=A.ts/>
var a1 = new A( Jun );
a1.disp();
tsc TestA.ts
OK. Rende A.js e TestA.js.tsc TestA.ts -e
NG. RefenceError:Anon è definitotsc A.ts TestA.ts -e
solleva anche lo stesso errore
Dove ho sbagliato?













