Files
kotlin-fork/idea/testData/intentions/removeUnnecessaryLateinit/secondaryConstructorDelegateLoop.kt
T
shiraji 5fb79259f7 Intention / inspection for unnecessary lateinit #KT-13011 Fixed
(cherry picked from commit 45d82f1)
2016-08-03 09:31:03 +03:00

22 lines
449 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: There's a cycle in the delegation calls chain
// ERROR: There's a cycle in the delegation calls chain
// ERROR: There's a cycle in the delegation calls chain
class Foo {
<caret>lateinit var bar: String
constructor() {
bar = ""
}
constructor(a: Int) : this(a, 0, 0) {
}
constructor(a: Int, b: Int) : this(a) {
}
constructor(a: Int, b: Int, c: Int) : this(a, b) {
}
}