2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/asiInES6Classes.ts ===
|
|
|
|
class Foo {
|
|
|
|
>Foo : Foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
>defaults : { done: boolean; }
|
2014-08-22 03:39:46 +02:00
|
|
|
>{ done: false } : { done: boolean; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
done: false
|
|
|
|
>done : boolean
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bar() {
|
|
|
|
>bar : () => number
|
|
|
|
|
|
|
|
return 3;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|