TypeScript/tests/baselines/reference/strictMode5.types

39 lines
572 B
Plaintext
Raw Normal View History

2014-08-28 01:58:31 +02:00
=== tests/cases/compiler/strictMode5.ts ===
function foo(...args) {
>foo : (...args: any[]) => void
2014-08-28 01:58:31 +02:00
>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
2014-08-28 01:58:31 +02:00
>x : number
"use strict"
}