One non-processed branch is now allowed for if statement #KT-10805 Fixed
Also #EA-64033 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
43b176de7e
commit
7e26fa6002
@@ -0,0 +1,11 @@
|
||||
// AssertionError for nested ifs with lambdas and Nothing as results
|
||||
|
||||
val <!IMPLICIT_NOTHING_PROPERTY_TYPE!>fn<!> = if (true) {
|
||||
<!TYPE_MISMATCH!>{ true }<!>
|
||||
}
|
||||
else if (true) {
|
||||
<!TYPE_MISMATCH!>{ true }<!>
|
||||
}
|
||||
else {
|
||||
null!!
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public val fn: kotlin.Nothing
|
||||
Reference in New Issue
Block a user