İki typescript dosyaları yapılmış A.tsve 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
TAMAM. Bu A.js ve TestA.js yapar.tsc TestA.ts -e
NG. RefenceError:Atanımlanmadıtsc A.ts TestA.ts -e
Aynı hatayı yükseltir
Nerede yanlış gider?













