Minor: update testdata in completion test on contracts

This commit is contained in:
Dmitry Savvinov
2018-10-18 12:09:10 +03:00
parent 763e72603a
commit 7887bafc5b
3 changed files with 8 additions and 8 deletions
@@ -1,11 +1,11 @@
Resolve target: value-parameter x: kotlin.Any? smart-cast to kotlin.String Resolve target: value-parameter x: kotlin.Any? smart-cast to kotlin.String
---------------------------------------------- ----------------------------------------------
// COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect // COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect
@file:Suppress("INVISIBLE_MEMBER")
package test package test
import kotlin.internal.contracts.* import kotlin.contracts.*
@UseExperimental(ExperimentalContracts::class)
fun myRequire(x: Boolean) { fun myRequire(x: Boolean) {
contract { contract {
returns() implies x returns() implies x
@@ -1,11 +1,11 @@
Resolve target: value-parameter x: kotlin.Any? smart-cast to kotlin.String Resolve target: value-parameter x: kotlin.Any? smart-cast to kotlin.String
---------------------------------------------- ----------------------------------------------
// COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect // COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect
@file:Suppress("INVISIBLE_MEMBER")
package test package test
import kotlin.internal.contracts.* import kotlin.contracts.*
@UseExperimental(ExperimentalContracts::class)
fun myRequire(x: Boolean) { fun myRequire(x: Boolean) {
contract { contract {
returns() implies x returns() implies x
@@ -1,9 +1,9 @@
// COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect // COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect
@file:Suppress("INVISIBLE_MEMBER")
package test package test
import kotlin.internal.contracts.* import kotlin.contracts.*
@UseExperimental(ExperimentalContracts::class)
fun myRequire(x: Boolean) { fun myRequire(x: Boolean) {
contract { contract {
returns() implies x returns() implies x