Single-branch if-statements
Single-branch if-expressions are now compiled to statements if the result is not used #KT-3036 In Progress
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun foo() {
|
||||
if (0 < 1) {
|
||||
return
|
||||
}
|
||||
|
||||
if (1 < 2) else {
|
||||
return
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user