2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/es6ClassTest5.ts ===
|
|
|
|
class C1T5 {
|
|
|
|
>C1T5 : C1T5
|
|
|
|
|
|
|
|
foo: (i: number, s: string) => number =
|
|
|
|
>foo : (i: number, s: string) => number
|
|
|
|
>i : number
|
|
|
|
>s : string
|
|
|
|
|
|
|
|
(i) => {
|
2014-08-22 03:39:46 +02:00
|
|
|
>(i) => { return i; } : (i: number) => number
|
2014-08-15 23:33:16 +02:00
|
|
|
>i : number
|
|
|
|
|
|
|
|
return i;
|
|
|
|
>i : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module C2T5 {}
|
2014-08-28 21:40:58 +02:00
|
|
|
>C2T5 : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
class bigClass {
|
|
|
|
>bigClass : bigClass
|
|
|
|
|
|
|
|
public break = 1;
|
|
|
|
>break : number
|
|
|
|
}
|
|
|
|
|