Improve support of 'lateinit' modifier
- Allow 'lateinit' for inline classes which underlying type is suitable for 'lateinit' - K2: report all problems related to 'lateinit' modifier ^KT-55052: Fixed
This commit is contained in:
committed by
teamcity
parent
e0c13e5276
commit
cd6e865fb3
+11
@@ -0,0 +1,11 @@
|
||||
// !LANGUAGE: +InlineClasses, -JvmInlineValueClasses
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
// FIR_IDENTICAL
|
||||
|
||||
inline class Foo(val x: Int)
|
||||
|
||||
<!INAPPLICABLE_LATEINIT_MODIFIER!>lateinit<!> var a: Foo
|
||||
|
||||
fun foo() {
|
||||
<!INAPPLICABLE_LATEINIT_MODIFIER!>lateinit<!> var b: Foo
|
||||
}
|
||||
Reference in New Issue
Block a user