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