41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
=== tests/cases/compiler/binopAssignmentShouldHaveType.ts ===
|
|
declare var console;
|
|
>console : Symbol(console, Decl(binopAssignmentShouldHaveType.ts, 0, 11))
|
|
|
|
"use strict";
|
|
module Test {
|
|
>Test : Symbol(Test, Decl(binopAssignmentShouldHaveType.ts, 1, 13))
|
|
|
|
export class Bug {
|
|
>Bug : Symbol(Bug, Decl(binopAssignmentShouldHaveType.ts, 2, 13))
|
|
|
|
getName():string {
|
|
>getName : Symbol(getName, Decl(binopAssignmentShouldHaveType.ts, 3, 19))
|
|
|
|
return "name";
|
|
}
|
|
bug() {
|
|
>bug : Symbol(bug, Decl(binopAssignmentShouldHaveType.ts, 6, 3))
|
|
|
|
var name:string= null;
|
|
>name : Symbol(name, Decl(binopAssignmentShouldHaveType.ts, 8, 6))
|
|
|
|
if ((name= this.getName()).length > 0) {
|
|
>(name= this.getName()).length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
>name : Symbol(name, Decl(binopAssignmentShouldHaveType.ts, 8, 6))
|
|
>this.getName : Symbol(getName, Decl(binopAssignmentShouldHaveType.ts, 3, 19))
|
|
>this : Symbol(Bug, Decl(binopAssignmentShouldHaveType.ts, 2, 13))
|
|
>getName : Symbol(getName, Decl(binopAssignmentShouldHaveType.ts, 3, 19))
|
|
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
|
|
|
|
console.log(name);
|
|
>console : Symbol(console, Decl(binopAssignmentShouldHaveType.ts, 0, 11))
|
|
>name : Symbol(name, Decl(binopAssignmentShouldHaveType.ts, 8, 6))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|