TypeScript/tests/baselines/reference/strictMode5.types
2014-08-28 12:52:44 -07:00

39 lines
572 B
Plaintext

=== tests/cases/compiler/strictMode5.ts ===
function foo(...args) {
>foo : (...args: any[]) => void
>args : any[]
"use strict"
}
class A {
>A : A
m() {
>m : () => void
"use strict"
var v = () => {
>v : () => void
>() => { return this.n(); } : () => void
return this.n();
>this.n() : void
>this.n : () => void
>this : A
>n : () => void
};
}
n() {}
>n : () => void
}
function bar(x: number = 10) {
>bar : (x?: number) => void
>x : number
"use strict"
}