[FIR] Put new contract syntax under feauture flag

^KT-55171 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-01-23 18:05:13 +02:00
committed by Space Team
parent 2783aa13f5
commit 4c96495eef
22 changed files with 147 additions and 10 deletions
@@ -1,3 +1,4 @@
// LANGUAGE: +ContractSyntaxV2
import kotlin.contracts.*
fun test1(arg: Any?) contract [
@@ -19,4 +20,4 @@ fun test3(arg: Any?): Boolean contract [
] {
require(arg != null)
return true
}
}