Skip to content

Commit 351aff4

Browse files
committed
Add test
1 parent 7ee4397 commit 351aff4

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

compiler/test/data/typescript/class/constructor/withPropertyDeclaration.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

compiler/test/data/typescript/class/constructor/withPropertyDeclaration.d.kt renamed to compiler/test/data/typescriptBodies/constructorWithPropertyDeclaration.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ import org.w3c.performance.*
1515
import org.w3c.workers.*
1616
import org.w3c.xhr.*
1717

18-
external open class Foo(var x: Any)
18+
open class Foo(var x: Any)
1919

20-
external open class Bar(var n: Number, var a: Any)
20+
open class Bar(var n: Number, var a: Any)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export class Foo {
2+
constructor(public x) {
3+
4+
}
5+
}
6+
7+
export class Bar {
8+
constructor(public n: number, public a) {
9+
10+
}
11+
}

0 commit comments

Comments
 (0)