[Test] Add test for KT-54668

This commit is contained in:
Dmitriy Novozhilov
2022-10-25 14:14:59 +03:00
committed by Space Team
parent f2cc5310b9
commit bc9bc26cc8
6 changed files with 56 additions and 0 deletions
@@ -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
}
}<!>