KT-12152 : constructor consistency analysis, base cases
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class My {
|
||||
|
||||
val x: Int
|
||||
get() = 1
|
||||
|
||||
init {
|
||||
// x has no backing field, so the call is safe
|
||||
foo()
|
||||
}
|
||||
|
||||
fun foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user