Files
kotlin-fork/compiler/testData/diagnostics/tests/TraitWithConstructor.fir.kt
T
2020-03-27 16:46:59 +03:00

18 lines
359 B
Kotlin
Vendored

// !DIAGNOSTICS: -MISSING_CONSTRUCTOR_KEYWORD
class C(val a: String) {}
interface T1(val x: String) {}
interface T2 constructor() {}
interface T3 private constructor(a: Int) {}
interface T4 {
<!CONSTRUCTOR_IN_INTERFACE!>constructor(a: Int)<!> {
val b: Int = 1
}
}
interface T5 private () : T4 {}
interface T6 private<!SYNTAX!><!> : T5 {}