From 1e8dbd4846f9941aeb5b206c6e537878dbd016f9 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Tue, 9 Nov 2021 13:31:17 +0300 Subject: [PATCH] [Native][tests] Add ExperimentalContracts OPT_IN directive for kt47300.kt Without this directive the test can't be compiled by Kotlin/Native, because the box() function which is annotated with @ExperimentalContracts is called from the generated test runner source code that itself is not marked by this annotation. --- compiler/testData/codegen/box/contracts/kt47300.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/testData/codegen/box/contracts/kt47300.kt b/compiler/testData/codegen/box/contracts/kt47300.kt index 683d7d05e67..851f4d84414 100644 --- a/compiler/testData/codegen/box/contracts/kt47300.kt +++ b/compiler/testData/codegen/box/contracts/kt47300.kt @@ -1,3 +1,4 @@ +// !OPT_IN: kotlin.contracts.ExperimentalContracts // WITH_RUNTIME import kotlin.contracts.ExperimentalContracts