Intention / inspection for unnecessary lateinit #KT-13011 Fixed
(cherry picked from commit 45d82f1)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d868410093
commit
5fb79259f7
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// INTENTION_TEXT: Remove unnecessary lateinit
|
||||
|
||||
class Foo {
|
||||
<caret>lateinit var bar: String
|
||||
|
||||
constructor() {
|
||||
bar = ""
|
||||
}
|
||||
|
||||
constructor(a: Int) : this() {
|
||||
}
|
||||
|
||||
constructor(a: Int, b: Int) : this(a) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user