[FE] Don't fail with exception if ESVisitor tries to visit ESLambda
#KT-45243 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
f3135baba9
commit
74118930b4
+19
@@ -0,0 +1,19 @@
|
||||
// ISSUE: KT-45243
|
||||
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
import kotlin.contracts.contract
|
||||
|
||||
@ExperimentalContracts
|
||||
fun <T> assertNotNull(actual: T) {
|
||||
contract { returns() implies (actual != null) }
|
||||
}
|
||||
|
||||
@ExperimentalContracts
|
||||
fun test_1() {
|
||||
assertNotNull { }
|
||||
}
|
||||
|
||||
@ExperimentalContracts
|
||||
fun test_2() {
|
||||
assertNotNull({ })
|
||||
}
|
||||
Reference in New Issue
Block a user