Files
kotlin-fork/compiler/testData/diagnostics/tests/secondaryConstructors/valOrValAndModifiersInCtr.kt
T
Denis Zharkov 01e5ee718f Allow secondary constructors without body
#KT-6967 Fixed
2015-03-27 16:09:40 +03:00

8 lines
262 B
Kotlin

// !DIAGNOSTICS: -UNUSED_PARAMETER
class A {
constructor(
<!VAL_OR_VAR_ON_SECONDARY_CONSTRUCTOR_PARAMETER!>val<!> x: Int, y: Int,
<!VAL_OR_VAR_ON_SECONDARY_CONSTRUCTOR_PARAMETER!>var<!> z: Int,
<!ILLEGAL_MODIFIER!>public<!> a: Int)
}