Hice dos archivos de texto mecanografiado A.tsy 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
DE ACUERDO. Se hace A.js y TestA.js.tsc TestA.ts -e
NG. RefenceError:Ano está definidotsc A.ts TestA.ts -e
También plantea el mismo error
¿A dónde voy mal?













