[FE] Preserve legacy contract description calls in bodies
^KT-55231 Fixed ^KTIJ-21012 Fixed
This commit is contained in:
@@ -3,6 +3,7 @@ import kotlin.contracts.*
|
||||
|
||||
fun <T> n(): T? = null
|
||||
|
||||
@OptIn(ExperimentalContracts::class)
|
||||
fun <T> run2(x: () -> T, y: () -> T) {
|
||||
contract {
|
||||
callsInPlace(x, InvocationKind.EXACTLY_ONCE)
|
||||
|
||||
Reference in New Issue
Block a user