[IR] Add context receiver test on MFVC
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com> #KT-1179
This commit is contained in:
committed by
Space Team
parent
fe1647096f
commit
0c70b60988
-6
@@ -1,6 +0,0 @@
|
||||
// !LANGUAGE: +InlineClasses, -JvmInlineValueClasses, +ContextReceivers
|
||||
|
||||
class A
|
||||
|
||||
context(A)
|
||||
inline class B(val x: Int)
|
||||
compiler/testData/diagnostics/tests/extensions/contextReceivers/noContextReceiversOnInlineClasses.kt
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
// !LANGUAGE: +InlineClasses, -JvmInlineValueClasses, +ContextReceivers
|
||||
|
||||
class A
|
||||
|
||||
<!INLINE_CLASS_CANNOT_HAVE_CONTEXT_RECEIVERS!>context(A)<!>
|
||||
inline class B(val x: Int)
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
package
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
context(A) public final inline class B {
|
||||
public constructor B(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// !LANGUAGE: +ContextReceivers, +ValueClasses
|
||||
// WITH_STDLIB
|
||||
// SKIP_TXT
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
|
||||
@file:Suppress("INLINE_CLASS_DEPRECATED")
|
||||
|
||||
class A
|
||||
|
||||
context(A)
|
||||
inline class B1(val x: Int)
|
||||
|
||||
context(A)
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class B2(val x: Int)
|
||||
|
||||
context(A)
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class C(val x: Int, val y: Int)
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// !LANGUAGE: +ContextReceivers, +ValueClasses
|
||||
// WITH_STDLIB
|
||||
// SKIP_TXT
|
||||
// WORKS_WHEN_VALUE_CLASS
|
||||
|
||||
@file:Suppress("INLINE_CLASS_DEPRECATED")
|
||||
|
||||
class A
|
||||
|
||||
<!VALUE_CLASS_CANNOT_HAVE_CONTEXT_RECEIVERS!>context(A)<!>
|
||||
inline class B1(val x: Int)
|
||||
|
||||
<!VALUE_CLASS_CANNOT_HAVE_CONTEXT_RECEIVERS!>context(A)<!>
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class B2(val x: Int)
|
||||
|
||||
<!VALUE_CLASS_CANNOT_HAVE_CONTEXT_RECEIVERS!>context(A)<!>
|
||||
OPTIONAL_JVM_INLINE_ANNOTATION
|
||||
value class C(val x: Int, val y: Int)
|
||||
Reference in New Issue
Block a user