[Test] Add test for KT-57968

This commit is contained in:
Dmitriy Novozhilov
2023-04-27 14:58:40 +03:00
committed by Space Team
parent adc5fe6e4e
commit ad002437b4
6 changed files with 41 additions and 0 deletions
@@ -0,0 +1,11 @@
// FIR_IDENTICAL
// ISSUE: KT-57968
class Some(val child: Some?)
val Some.foo get(): Int =
if ((child?.foo ?: 0) > 1) {
0
} else {
1
}