6 lines
No EOL
127 B
TypeScript
6 lines
No EOL
127 B
TypeScript
class A {
|
|
constructor(public a1: string) {
|
|
}
|
|
}
|
|
function foo(x = new A(123)) { //should error, 123 is not string
|
|
}} |