FIR: Update test-data (Delegate inference)
This commit is contained in:
committed by
teamcity
parent
b45b624945
commit
40a2837b4c
+4
-3
@@ -8,9 +8,10 @@ fun <T> lazy(block: () -> T): LazyDelegate<T> = LazyDelegate(block())
|
||||
|
||||
fun getAny(): Any? = null
|
||||
|
||||
fun <Q> materialize(): Q = null!!
|
||||
|
||||
class Test {
|
||||
val x by lazy {
|
||||
val y = getAny() as? String ?: ""
|
||||
y
|
||||
val x: String by lazy {
|
||||
materialize()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user