K1/K2: add a test to fix state of KT-55168
This commit is contained in:
committed by
Space Team
parent
d9b5d37baf
commit
3e330241b4
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// ISSUE: KT-55168
|
||||
fun foo(arg: Boolean) = buildList {
|
||||
if (arg) <!TYPE_MISMATCH!>{
|
||||
<!TYPE_MISMATCH!>removeLast()<!>
|
||||
}<!> else {
|
||||
add(42)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user