Load of testdata change due to contracts publishing
See changes in e2606b72bdbec2fea567d4127197707869eb801e
This commit is contained in:
committed by
Ilya Gorbunov
parent
accbd07b2e
commit
ee8702d21e
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
fun <X, Y, Z, R> callsEffectWithKind(block: (X, Y, Z) -> R) {
|
||||
contract {
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
class A
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
// this tests specifically use primitive condition (predicate/value) as the
|
||||
// first argument of sequence, so that it would be optimized and embedded into message
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
public inline fun <R> run(block: () -> R): R {
|
||||
contract {
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
class A
|
||||
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
|
||||
fun orSequence(x: Any?, y: Any?, b: Boolean) {
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
fun twoReturnsValue(b: Boolean) {
|
||||
contract {
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
fun foo(x: Any?): Boolean {
|
||||
contract {
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
fun foo(n: Int, x: Any?): Boolean {
|
||||
contract {
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +AllowContractsForCustomFunctions +ReadDeserializedContracts
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
// !USE_EXPERIMENTAL: kotlin.contracts.ExperimentalContracts
|
||||
|
||||
package test
|
||||
|
||||
import kotlin.internal.contracts.*
|
||||
import kotlin.contracts.*
|
||||
|
||||
fun Any?.isNotNull(): Boolean {
|
||||
contract {
|
||||
|
||||
Reference in New Issue
Block a user