19 lines
265 B
TypeScript
19 lines
265 B
TypeScript
// @lib: es5
|
|
declare var console;
|
|
"use strict";
|
|
module Test {
|
|
export class Bug {
|
|
getName():string {
|
|
return "name";
|
|
}
|
|
bug() {
|
|
var name:string= null;
|
|
if ((name= this.getName()).length > 0) {
|
|
console.log(name);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|