16 lines
492 B
Text
16 lines
492 B
Text
=== tests/cases/conformance/classes/classExpressions/classExpression5.ts ===
|
|
new class {
|
|
>new class { hi() { return "Hi!"; }}().hi() : string
|
|
>new class { hi() { return "Hi!"; }}().hi : () => string
|
|
>new class { hi() { return "Hi!"; }}() : (Anonymous class)
|
|
>class { hi() { return "Hi!"; }} : typeof (Anonymous class)
|
|
|
|
hi() {
|
|
>hi : () => string
|
|
|
|
return "Hi!";
|
|
>"Hi!" : string
|
|
}
|
|
}().hi();
|
|
>hi : () => string
|
|
|