Files
kotlin-fork/compiler/testData/psi/secondaryConstructors/basic.kt
T
Denis Zharkov 02aafe4262 Report syntax error on unescaped annotation
Also adjust parser testData
2015-09-18 09:34:26 +03:00

18 lines
291 B
Kotlin
Vendored

class A {
constructor() {}
val x: Int
private @annot constructor(x: Int) {}
@constructor fun constructor() {}
@annot protected constructor(x: Int, y: Int) : this(1,2) {}
@[constructor] public constructor() : super() {
x = 1
}
}
@constructor class B