[Test] Add test for KT-54668
This commit is contained in:
committed by
Space Team
parent
f2cc5310b9
commit
bc9bc26cc8
+14
@@ -0,0 +1,14 @@
|
||||
// WITH_STDLIB
|
||||
// ISSUE: KT-54668
|
||||
|
||||
interface A {
|
||||
val list: List<String>
|
||||
}
|
||||
|
||||
fun getA(): A? = null
|
||||
|
||||
val x by <!NEW_INFERENCE_ERROR!>lazy {
|
||||
(getA() ?: error("error")).list.associateBy {
|
||||
it
|
||||
}
|
||||
}<!>
|
||||
Reference in New Issue
Block a user