Minor: update testdata in completion test on contracts
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
Resolve target: value-parameter x: kotlin.Any? smart-cast to kotlin.String
|
||||
----------------------------------------------
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect
|
||||
@file:Suppress("INVISIBLE_MEMBER")
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
@UseExperimental(ExperimentalContracts::class)
|
||||
fun myRequire(x: Boolean) {
|
||||
contract {
|
||||
returns() implies x
|
||||
@@ -19,4 +19,4 @@ fun testContractFromSource(x: Any?, y: Any?) {
|
||||
<caret>x.length
|
||||
|
||||
/* STATEMENT DELETED: myRequire(x is Int) */
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
Resolve target: value-parameter x: kotlin.Any? smart-cast to kotlin.String
|
||||
----------------------------------------------
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect
|
||||
@file:Suppress("INVISIBLE_MEMBER")
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
@UseExperimental(ExperimentalContracts::class)
|
||||
fun myRequire(x: Boolean) {
|
||||
contract {
|
||||
returns() implies x
|
||||
@@ -19,4 +19,4 @@ fun testContractFromSource(x: Any?, y: Any?) {
|
||||
<caret>x.length
|
||||
|
||||
/* STATEMENT DELETED: myRequire(x is Int) */
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+AllowContractsForCustomFunctions -XXLanguage:+UseReturnsEffect
|
||||
@file:Suppress("INVISIBLE_MEMBER")
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
@UseExperimental(ExperimentalContracts::class)
|
||||
fun myRequire(x: Boolean) {
|
||||
contract {
|
||||
returns() implies x
|
||||
|
||||
Reference in New Issue
Block a user