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
+12
@@ -0,0 +1,12 @@
|
||||
package
|
||||
|
||||
public lateinit var a: Foo
|
||||
public fun foo(): kotlin.Unit
|
||||
|
||||
public final inline class Foo {
|
||||
public constructor Foo(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user