Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/initializerWithSecondaryConstructor.kt
T
2017-03-02 18:34:51 +03:00

20 lines
302 B
Kotlin
Vendored

private const val A = 0L
private val B = 0L
private fun sample() = 0L
private class PrivateClass
class Foo {
var bar: Long = 0
private var other: PrivateClass? = null
init {
bar = A
bar = B
bar = sample()
other = PrivateClass()
}
constructor()
}