FIR checker: report (expected|unnecessary) lateinit
This commit is contained in:
committed by
Mikhail Glukhikh
parent
815e40620c
commit
d2da15e039
+1
-1
@@ -23,7 +23,7 @@ expect class Foo {
|
||||
get() = "no"
|
||||
set(value) {}
|
||||
|
||||
lateinit var lateinitVar: String
|
||||
<!EXPECTED_LATEINIT_PROPERTY!>lateinit<!> var lateinitVar: String
|
||||
|
||||
val delegated: String by <!EXPECTED_DELEGATED_PROPERTY!>Delegate<!>
|
||||
}
|
||||
|
||||
compiler/testData/diagnostics/tests/multiplatform/topLevelProperty/differentKindsOfProperties.fir.kt
Vendored
+1
-1
@@ -28,7 +28,7 @@ expect var customAccessorVar: String
|
||||
|
||||
expect const val constVal: Int
|
||||
|
||||
expect lateinit var lateinitVar: String
|
||||
expect <!EXPECTED_LATEINIT_PROPERTY!>lateinit<!> var lateinitVar: String
|
||||
|
||||
expect val delegated: String by <!EXPECTED_DELEGATED_PROPERTY!>Delegate<!>
|
||||
object Delegate { operator fun getValue(x: Any?, y: Any?): String = "" }
|
||||
|
||||
Reference in New Issue
Block a user