30 lines
343 B
Text
30 lines
343 B
Text
=== tests/cases/compiler/asiInES6Classes.ts ===
|
|
class Foo {
|
|
>Foo : Foo
|
|
|
|
|
|
|
|
defaults = {
|
|
>defaults : { done: boolean; }
|
|
>{ done: false } : { done: boolean; }
|
|
|
|
done: false
|
|
>done : boolean
|
|
>false : boolean
|
|
|
|
}
|
|
|
|
|
|
|
|
bar() {
|
|
>bar : () => number
|
|
|
|
return 3;
|
|
>3 : number
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|