[Test] Update testdata of diagnostic tests during to change language to 1.5
Mostly this commit contains changes of descriptor dump of sealed classes tests according to changed visibility of sealed class constructor
This commit is contained in:
-12
@@ -24415,12 +24415,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/NeverFinal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NeverInterface.kt")
|
||||
public void testNeverInterface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/NeverInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NeverObject.kt")
|
||||
public void testNeverObject() throws Exception {
|
||||
@@ -27255,12 +27249,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noMultiplatformProjects.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noTopLevelSealedInheritance.kt")
|
||||
public void testNoTopLevelSealedInheritance() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noTopLevelSealedInheritance.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/sourceCompatibility/apiVersion")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
@@ -25,9 +25,9 @@ fun main() {
|
||||
join(1, "4", *a)
|
||||
join(1, "4", *a, *a, "3")
|
||||
join(1, "4", *a, *<!TYPE_MISMATCH!>b<!>, "3")
|
||||
join(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS{NI}!>a = a<!>, x = 1)
|
||||
join(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS{NI}!>a = <!TYPE_MISMATCH!>b<!><!>, x = 1)
|
||||
join(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS{NI}!>a = a<!>, x = 1)
|
||||
join(a = a, x = 1)
|
||||
join(a = <!TYPE_MISMATCH!>b<!>, x = 1)
|
||||
join(a = a, x = 1)
|
||||
|
||||
joinG<String>(1, "2")
|
||||
joinG<String>(<!NON_VARARG_SPREAD!>*<!>1, "2")
|
||||
@@ -40,7 +40,7 @@ fun main() {
|
||||
joinG<String>(1, "4", *a, "3")
|
||||
joinG<String>(1, "4", *a)
|
||||
joinG<String>(1, "4", *a, *a, "3")
|
||||
joinG<String>(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS{NI}!>a = a<!>, x = 1)
|
||||
joinG<String>(a = a, x = 1)
|
||||
|
||||
joinG(1, "2")
|
||||
joinG(<!NON_VARARG_SPREAD!>*<!>1, "2")
|
||||
@@ -53,7 +53,7 @@ fun main() {
|
||||
joinG(1, "4", *a, "3")
|
||||
joinG(1, "4", *a)
|
||||
joinG(1, "4", *a, *a, "3")
|
||||
joinG(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS{NI}!>a = a<!>, x = 1)
|
||||
joinG(a = a, x = 1)
|
||||
|
||||
val x1 = joinT(1, "2")
|
||||
checkSubtype<String?>(x1)
|
||||
@@ -69,7 +69,7 @@ fun main() {
|
||||
checkSubtype<String?>(x9)
|
||||
val x10 = joinT(1, "4", *a, *a, "3")
|
||||
checkSubtype<String?>(x10)
|
||||
val x11 = joinT(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS{NI}!>a = a<!>, x = 1)
|
||||
val x11 = joinT(a = a, x = 1)
|
||||
checkSubtype<String?>(x11)
|
||||
val x12 = joinT(x = 1, a = a)
|
||||
checkSubtype<String?>(x12)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed data class My {
|
||||
private constructor My(/*0*/ x: kotlin.Int)
|
||||
internal constructor My(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public final operator /*synthesized*/ fun component1(): kotlin.Int
|
||||
public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ...): My
|
||||
@@ -29,3 +29,4 @@ public sealed data class My {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+5
-4
@@ -77,30 +77,31 @@ public object KT32183 {
|
||||
}
|
||||
|
||||
public sealed class ProjectJob {
|
||||
private constructor ProjectJob()
|
||||
internal constructor ProjectJob()
|
||||
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
|
||||
|
||||
public sealed class Process</*0*/ E : KT32183.ProjectJob.ProcessExecutable<E>, /*1*/ R : KT32183.ProjectJob.ProcessResources<R>> : KT32183.ProjectJob {
|
||||
private constructor Process</*0*/ E : KT32183.ProjectJob.ProcessExecutable<E>, /*1*/ R : KT32183.ProjectJob.ProcessResources<R>>()
|
||||
internal constructor Process</*0*/ E : KT32183.ProjectJob.ProcessExecutable<E>, /*1*/ R : KT32183.ProjectJob.ProcessResources<R>>()
|
||||
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
|
||||
}
|
||||
|
||||
public sealed class ProcessExecutable</*0*/ E : KT32183.ProjectJob.ProcessExecutable<E>> {
|
||||
private constructor ProcessExecutable</*0*/ E : KT32183.ProjectJob.ProcessExecutable<E>>()
|
||||
internal constructor ProcessExecutable</*0*/ E : KT32183.ProjectJob.ProcessExecutable<E>>()
|
||||
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
|
||||
}
|
||||
|
||||
public sealed class ProcessResources</*0*/ R : KT32183.ProjectJob.ProcessResources<R>> {
|
||||
private constructor ProcessResources</*0*/ R : KT32183.ProjectJob.ProcessResources<R>>()
|
||||
internal constructor ProcessResources</*0*/ R : KT32183.ProjectJob.ProcessResources<R>>()
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ public fun </*0*/ A, /*1*/ B> Either<A, B>.recover(/*0*/ f: (A) -> B): Either<A,
|
||||
public fun </*0*/ A> A.right(): Either<kotlin.Nothing, A>
|
||||
|
||||
public sealed class Either</*0*/ out A, /*1*/ out B> {
|
||||
private constructor Either</*0*/ out A, /*1*/ out B>()
|
||||
internal constructor Either</*0*/ out A, /*1*/ out B>()
|
||||
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
|
||||
@@ -25,3 +25,4 @@ public sealed class Either</*0*/ out A, /*1*/ out B> {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -174,7 +174,7 @@ public abstract inline class D2 {
|
||||
}
|
||||
|
||||
public sealed inline class D3 {
|
||||
private constructor D3(/*0*/ x: kotlin.Int)
|
||||
internal constructor D3(/*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
|
||||
@@ -190,3 +190,4 @@ public final data inline class D4 {
|
||||
public open override /*1*/ /*synthesized*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -21,13 +21,13 @@ package p {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public sealed class Sealed1 {
|
||||
private constructor Sealed1()
|
||||
internal constructor Sealed1()
|
||||
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
|
||||
|
||||
public sealed class Sealed2 {
|
||||
private constructor Sealed2()
|
||||
internal constructor Sealed2()
|
||||
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
|
||||
@@ -35,3 +35,4 @@ package p {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ package illegal_modifiers {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public sealed inner class Inner {
|
||||
private constructor Inner()
|
||||
internal constructor Inner()
|
||||
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
|
||||
@@ -176,3 +176,4 @@ package illegal_modifiers {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ package test {
|
||||
}
|
||||
|
||||
public sealed class S {
|
||||
private constructor S()
|
||||
internal constructor S()
|
||||
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
|
||||
|
||||
+2
-1
@@ -70,7 +70,7 @@ public expect interface BaseE {
|
||||
}
|
||||
|
||||
public sealed class BaseEImpl : BaseE {
|
||||
private constructor BaseEImpl()
|
||||
internal constructor BaseEImpl()
|
||||
public final fun bar(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract expect override /*1*/ /*fake_override*/ fun foo(): kotlin.Unit
|
||||
@@ -140,3 +140,4 @@ public final class DerivedC2 : BaseCImpl {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public sealed expect class Presence {
|
||||
package
|
||||
|
||||
public sealed class P {
|
||||
private constructor P()
|
||||
internal constructor P()
|
||||
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
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public actual object Online : P {
|
||||
}
|
||||
|
||||
public sealed class P {
|
||||
private constructor P()
|
||||
internal constructor P()
|
||||
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
|
||||
|
||||
+4
-4
@@ -29,12 +29,12 @@ fun foo4(
|
||||
|
||||
fun main() {
|
||||
foo1(1, 2, p2 = "3", <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>4.0<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo1(<!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS!>p1 = intArrayOf(1, 2)<!>, "3", p3 = 4.0)
|
||||
foo1(p1 = intArrayOf(1, 2), "3", p3 = 4.0)
|
||||
|
||||
foo1(p2 = "3", <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>4.0<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
|
||||
foo2(p1 = 1, "2", "3", p3 = 4.0)
|
||||
foo2(1, <!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS!>p2 = arrayOf("2", "3")<!>, 4.0)
|
||||
foo2(1, p2 = arrayOf("2", "3"), 4.0)
|
||||
foo2(1, p3 = 3.0)
|
||||
|
||||
foo3(p1 = 1, "2", 3.0, 4.0)
|
||||
@@ -52,6 +52,6 @@ fun main() {
|
||||
foo2(1, p3 = 2.0, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>*arrayOf("3", "4")<!>)
|
||||
foo2(1, p3 = 2.0, p2 = arrayOf("3", "4"))
|
||||
|
||||
foo3(1, <!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS!>p3 = doubleArrayOf(2.0, 3.0)<!>, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>"4"<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo3(1, <!CHANGING_ARGUMENTS_EXECUTION_ORDER_FOR_NAMED_VARARGS!>p3 = doubleArrayOf(2.0, 3.0)<!>, p2 = "4")
|
||||
foo3(1, p3 = doubleArrayOf(2.0, 3.0), <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>"4"<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo3(1, p3 = doubleArrayOf(2.0, 3.0), p2 = "4")
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
sealed class Base
|
||||
|
||||
class Derived: Base() {
|
||||
class Derived2: <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>Base<!>()
|
||||
class Derived2: Base()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
class Local: <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>Base<!>()
|
||||
class Local: <!SEALED_SUPERTYPE!>Base<!>()
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
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
|
||||
@@ -22,3 +22,4 @@ public final class Derived : Base {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -50,3 +50,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ public fun test2(/*0*/ x: Stmt): kotlin.String
|
||||
public fun test3(/*0*/ x: Expr): kotlin.String
|
||||
|
||||
public sealed class Expr : Stmt {
|
||||
private constructor Expr()
|
||||
internal constructor Expr()
|
||||
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
|
||||
@@ -26,8 +26,9 @@ public final class ForStmt : Stmt {
|
||||
}
|
||||
|
||||
public sealed class Stmt {
|
||||
private constructor Stmt()
|
||||
internal constructor Stmt()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
public final fun bar(): kotlin.Int
|
||||
public final fun baz(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -11,7 +11,7 @@ public sealed class Base {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public sealed class A : Base {
|
||||
private constructor A()
|
||||
internal constructor A()
|
||||
public final override /*1*/ /*fake_override*/ fun bar(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun baz(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -32,7 +32,7 @@ public sealed class Base {
|
||||
}
|
||||
|
||||
public sealed class A2 : Base.A {
|
||||
private constructor A2()
|
||||
internal constructor A2()
|
||||
public final override /*1*/ /*fake_override*/ fun bar(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun baz(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -44,7 +44,7 @@ public sealed class Base {
|
||||
}
|
||||
|
||||
public sealed class B : Base {
|
||||
private constructor B()
|
||||
internal constructor B()
|
||||
public final override /*1*/ /*fake_override*/ fun bar(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun baz(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -54,7 +54,7 @@ public sealed class Base {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public sealed class B1 : Base.B {
|
||||
private constructor B1()
|
||||
internal constructor B1()
|
||||
public final override /*1*/ /*fake_override*/ fun bar(): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun baz(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -76,3 +76,4 @@ public sealed class Base {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,14 +5,14 @@ public fun test2(/*0*/ a: A): kotlin.Any
|
||||
public fun test3(/*0*/ a: A): kotlin.Any
|
||||
|
||||
public sealed class A {
|
||||
private constructor A()
|
||||
internal 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
|
||||
}
|
||||
|
||||
public sealed class B : A {
|
||||
private constructor B()
|
||||
internal constructor B()
|
||||
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
|
||||
@@ -31,3 +31,4 @@ public final class D : B {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -44,3 +44,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
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
|
||||
@@ -43,3 +43,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ public fun fooWithElse(/*0*/ s: Sealed): kotlin.Int
|
||||
public fun fooWithoutElse(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
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
|
||||
@@ -67,3 +67,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -44,3 +44,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -52,3 +52,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed, /*1*/ nf: Sealed.NonFirst): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
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
|
||||
@@ -16,7 +16,7 @@ public sealed class Sealed {
|
||||
}
|
||||
|
||||
public sealed class NonFirst {
|
||||
private constructor NonFirst()
|
||||
internal constructor NonFirst()
|
||||
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
|
||||
@@ -43,3 +43,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed?): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -44,3 +44,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -56,3 +56,4 @@ public sealed class Sealed {
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -44,3 +44,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
public final val p: Sealed
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -42,3 +42,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@ public fun foo(/*0*/ b: Base): kotlin.Int
|
||||
public fun gav(/*0*/ b: Base?): kotlin.Int
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
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
|
||||
|
||||
public sealed class A : Base {
|
||||
private constructor A()
|
||||
internal 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
|
||||
@@ -32,7 +32,7 @@ public sealed class Base {
|
||||
}
|
||||
|
||||
public sealed class B : Base {
|
||||
private constructor B()
|
||||
internal constructor B()
|
||||
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
|
||||
@@ -52,3 +52,4 @@ public sealed class Base {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(): Base
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ class A {
|
||||
sealed class Base
|
||||
}
|
||||
|
||||
class Derived : <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>A.Base<!>()
|
||||
class Derived : A.Base()
|
||||
|
||||
fun test() {
|
||||
class DerivedLocal : <!INVISIBLE_MEMBER, SEALED_SUPERTYPE!>A.Base<!>()
|
||||
class DerivedLocal : <!SEALED_SUPERTYPE!>A.Base<!>()
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ public final class A {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
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
|
||||
@@ -22,3 +22,4 @@ public final class Derived : A.Base {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
sealed interface Base {
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
<!WRONG_MODIFIER_TARGET!>sealed<!> interface Base {
|
||||
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package
|
||||
|
||||
public sealed interface Base {
|
||||
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
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
package
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -44,3 +44,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -44,3 +44,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -61,3 +61,4 @@ public sealed class Sealed {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
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
|
||||
@@ -36,3 +36,4 @@ public sealed class Sealed {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public sealed class Sealed {
|
||||
public constructor Sealed()
|
||||
protected constructor Sealed(/*0*/ x: kotlin.Int)
|
||||
private constructor Sealed(/*0*/ y: kotlin.Int, /*1*/ z: kotlin.Int)
|
||||
internal constructor Sealed(/*0*/ y: kotlin.Int, /*1*/ z: kotlin.Int)
|
||||
public final val x: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -17,3 +17,4 @@ public sealed class Sealed {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@ package
|
||||
public fun </*0*/ T : Foo> doit(/*0*/ arg: T): T
|
||||
|
||||
public sealed class Foo {
|
||||
private constructor Foo()
|
||||
internal constructor Foo()
|
||||
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
|
||||
@@ -22,3 +22,4 @@ public sealed class Foo {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun priority(/*0*/ op: Operation): kotlin.Int
|
||||
|
||||
public sealed class Operation {
|
||||
private constructor Operation(/*0*/ left: kotlin.Int, /*1*/ right: kotlin.Int)
|
||||
internal constructor Operation(/*0*/ left: kotlin.Int, /*1*/ right: kotlin.Int)
|
||||
public final val left: kotlin.Int
|
||||
public final val right: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -51,3 +51,4 @@ public sealed class Operation {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
internal constructor Base()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed class Tree {
|
||||
private constructor Tree()
|
||||
internal constructor Tree()
|
||||
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 final fun max(): kotlin.Int
|
||||
@@ -34,3 +34,4 @@ public sealed class Tree {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed class Tree {
|
||||
private constructor Tree()
|
||||
internal constructor Tree()
|
||||
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 final fun max(): kotlin.Int
|
||||
@@ -34,3 +34,4 @@ public sealed class Tree {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
public sealed class Tree {
|
||||
private constructor Tree()
|
||||
internal constructor Tree()
|
||||
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 final fun max(): kotlin.Int
|
||||
@@ -42,3 +42,4 @@ public sealed class Tree {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,9 @@ package
|
||||
public fun foo(/*0*/ s: Sealed): kotlin.Int
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public interface Child : Parent {
|
||||
}
|
||||
|
||||
public sealed class Page : Parent {
|
||||
private constructor Page()
|
||||
internal constructor Page()
|
||||
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
|
||||
@@ -34,3 +34,4 @@ public interface Parent {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public open class OpenClass2 {
|
||||
}
|
||||
|
||||
public sealed class Sealed {
|
||||
private constructor Sealed()
|
||||
internal constructor Sealed()
|
||||
public final fun check(/*0*/ arg: Sealed.Sealed1): kotlin.Unit
|
||||
public open override /*1*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -88,3 +88,4 @@ public sealed class Sealed {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package
|
||||
|
||||
public sealed class My {
|
||||
private constructor My(/*0*/ x: kotlin.Int?)
|
||||
internal constructor My(/*0*/ x: kotlin.Int?)
|
||||
public open val x: kotlin.Int?
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !LANGUAGE: -TopLevelSealedInheritance
|
||||
|
||||
sealed class Base
|
||||
|
||||
class Derived : Base()
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !LANGUAGE: -TopLevelSealedInheritance
|
||||
|
||||
sealed class Base
|
||||
|
||||
class Derived : <!SEALED_SUPERTYPE!>Base<!>()
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package
|
||||
|
||||
public sealed class Base {
|
||||
private constructor Base()
|
||||
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
|
||||
}
|
||||
|
||||
public final class Derived : Base {
|
||||
public constructor Derived()
|
||||
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
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public object D : A {
|
||||
}
|
||||
|
||||
public sealed class E : A {
|
||||
private constructor E()
|
||||
internal constructor E()
|
||||
internal final override /*1*/ tailrec /*fake_override*/ fun baa(/*0*/ y: kotlin.Int): kotlin.Unit
|
||||
internal open override /*1*/ tailrec fun bar(/*0*/ y: kotlin.Int): kotlin.Unit
|
||||
protected open override /*1*/ tailrec fun baz(/*0*/ y: kotlin.Int): kotlin.Unit
|
||||
@@ -123,3 +123,4 @@ public final enum class G : kotlin.Enum<G> {
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): G
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<G>
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public object D : A {
|
||||
}
|
||||
|
||||
public sealed class E : A {
|
||||
private constructor E()
|
||||
internal constructor E()
|
||||
internal final override /*1*/ tailrec /*fake_override*/ fun baa(/*0*/ y: kotlin.Int): kotlin.Unit
|
||||
internal open override /*1*/ tailrec fun bar(/*0*/ y: kotlin.Int): kotlin.Unit
|
||||
protected open override /*1*/ tailrec fun baz(/*0*/ y: kotlin.Int): kotlin.Unit
|
||||
@@ -123,3 +123,4 @@ public final enum class G : kotlin.Enum<G> {
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): G
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<G>
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ val test3a = <!ENUM_CLASS_CONSTRUCTOR_CALL!><!INVISIBLE_MEMBER!>EnumClass<!>()<!
|
||||
|
||||
sealed class SealedClass
|
||||
typealias Test4 = SealedClass
|
||||
val test4 = <!SEALED_CLASS_CONSTRUCTOR_CALL!><!INVISIBLE_MEMBER!>Test4<!>()<!>
|
||||
val test4a = <!SEALED_CLASS_CONSTRUCTOR_CALL!><!INVISIBLE_MEMBER!>SealedClass<!>()<!>
|
||||
val test4 = <!SEALED_CLASS_CONSTRUCTOR_CALL!>Test4()<!>
|
||||
val test4a = <!SEALED_CLASS_CONSTRUCTOR_CALL!>SealedClass()<!>
|
||||
|
||||
class Outer {
|
||||
inner class Inner
|
||||
|
||||
+2
-1
@@ -66,7 +66,7 @@ public final class Outer {
|
||||
}
|
||||
|
||||
public sealed class SealedClass {
|
||||
private constructor SealedClass()
|
||||
internal constructor SealedClass()
|
||||
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
|
||||
@@ -76,3 +76,4 @@ public typealias Test2 = AnnotationClass
|
||||
public typealias Test3 = EnumClass
|
||||
public typealias Test4 = SealedClass
|
||||
public typealias Test5 = Outer.Inner
|
||||
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// !SKIP_JAVAC
|
||||
// !API_VERSION: 1.4
|
||||
// !LANGUAGE: -InlineClasses
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
|
||||
+3
-2
@@ -1,4 +1,5 @@
|
||||
// !SKIP_JAVAC
|
||||
// !API_VERSION: 1.4
|
||||
// !LANGUAGE: -InlineClasses
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
@@ -6,11 +7,11 @@ package kotlin.jvm
|
||||
|
||||
annotation class JvmInline
|
||||
|
||||
<!UNSUPPORTED_FEATURE, VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION!>value<!> class Foo(val x: Int)
|
||||
<!VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION!>value<!> class Foo(val x: Int)
|
||||
|
||||
<!VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION, WRONG_MODIFIER_TARGET!>value<!> annotation class InlineAnn
|
||||
<!VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION, WRONG_MODIFIER_TARGET!>value<!> object InlineObject
|
||||
<!VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION, WRONG_MODIFIER_TARGET!>value<!> enum class InlineEnum
|
||||
|
||||
@JvmInline
|
||||
<!UNSUPPORTED_FEATURE!>value<!> class NotVal(x: Int)
|
||||
value class NotVal(<!INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER!>x: Int<!>)
|
||||
|
||||
+2
-1
@@ -152,7 +152,7 @@ package kotlin {
|
||||
}
|
||||
|
||||
public sealed value class D3 {
|
||||
private constructor D3(/*0*/ x: kotlin.Int)
|
||||
internal constructor D3(/*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
|
||||
@@ -177,3 +177,4 @@ package kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -26,8 +26,9 @@ public object Last : S {
|
||||
}
|
||||
|
||||
public sealed class S {
|
||||
private constructor S()
|
||||
internal constructor S()
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public final enum class MyEnum : kotlin.Enum<MyEnum!> {
|
||||
}
|
||||
|
||||
public sealed class X {
|
||||
private constructor X()
|
||||
internal constructor X()
|
||||
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
|
||||
@@ -69,3 +69,4 @@ public sealed class X {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package
|
||||
public fun test(/*0*/ a: A): kotlin.Unit
|
||||
|
||||
public sealed class A {
|
||||
private constructor A()
|
||||
internal 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
|
||||
@@ -29,3 +29,4 @@ public final class D : A {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -4,7 +4,7 @@ public fun testSmartcastToSealedInSubjectInitializer1(/*0*/ x: kotlin.Any?): kot
|
||||
public fun testSmartcastToSealedInSubjectInitializer2(/*0*/ x: kotlin.Any?): kotlin.Unit
|
||||
|
||||
public sealed class Either {
|
||||
private constructor Either()
|
||||
internal constructor Either()
|
||||
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
|
||||
@@ -23,3 +23,4 @@ public final class Right : Either {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -120,7 +120,7 @@ private final class Outer {
|
||||
}
|
||||
|
||||
public sealed class SealedSpecialized : Foo<kotlin.String> {
|
||||
private constructor SealedSpecialized()
|
||||
internal constructor SealedSpecialized()
|
||||
public open override /*1*/ /*fake_override*/ val kotlin.String.prop: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -181,3 +181,4 @@ public open class UnspecializedFromDerived : FooDerived {
|
||||
public open override /*1*/ /*fake_override*/ fun test(/*0*/ p: kotlin.String): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -3,13 +3,13 @@ package
|
||||
public fun </*0*/ A, /*1*/ DA : DataType<A>, /*2*/ B, /*3*/ DB : DataType<B>, /*4*/ C, /*5*/ DC : DataType<C>, /*6*/ D, /*7*/ DD : DataType<D>, /*8*/ E, /*9*/ DE : DataType<E>, /*10*/ F, /*11*/ DF : DataType<F>, /*12*/ G, /*13*/ DG : DataType<G>, /*14*/ H, /*15*/ DH : DataType<H>> either8(/*0*/ firstName: kotlin.String, /*1*/ firstType: DA, /*2*/ secondName: kotlin.String, /*3*/ secondType: DB, /*4*/ thirdName: kotlin.String, /*5*/ thirdType: DC, /*6*/ fourthName: kotlin.String, /*7*/ fourthType: DD, /*8*/ fifthName: kotlin.String, /*9*/ fifthType: DE, /*10*/ sixthName: kotlin.String, /*11*/ sixthType: DF, /*12*/ seventhName: kotlin.String, /*13*/ seventhType: DG, /*14*/ eighthName: kotlin.String, /*15*/ eighthType: DH): DataType.NotNull.Partial<Either8<A, B, C, D, E, F, G, H>>
|
||||
|
||||
public sealed class DataType</*0*/ T> {
|
||||
private constructor DataType</*0*/ T>()
|
||||
internal constructor DataType</*0*/ T>()
|
||||
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
|
||||
|
||||
public sealed class NotNull</*0*/ T> : DataType<T> {
|
||||
private constructor NotNull</*0*/ T>()
|
||||
internal constructor NotNull</*0*/ T>()
|
||||
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
|
||||
@@ -50,3 +50,4 @@ public final class Tuple8</*0*/ A, /*1*/ DA : DataType<A>, /*2*/ B, /*3*/ DB : D
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@ package
|
||||
public val tree: Tree.Inner<kotlin.Int, kotlin.String, kotlin.Unit, kotlin.Int>
|
||||
|
||||
public sealed class Tree</*0*/ TIndex, /*1*/ out TCommon, /*2*/ out TInner, /*3*/ out TLeaf> {
|
||||
private constructor Tree</*0*/ TIndex, /*1*/ out TCommon, /*2*/ out TInner, /*3*/ out TLeaf>()
|
||||
internal constructor Tree</*0*/ TIndex, /*1*/ out TCommon, /*2*/ out TInner, /*3*/ out TLeaf>()
|
||||
public abstract val children: kotlin.collections.Map<TIndex, Tree<TIndex, TCommon, TInner, TLeaf>>
|
||||
public abstract val value: TCommon
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -37,3 +37,4 @@ public sealed class Tree</*0*/ TIndex, /*1*/ out TCommon, /*2*/ out TInner, /*3*
|
||||
public open override /*1*/ /*synthesized*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
-12
@@ -24505,12 +24505,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/NeverFinal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NeverInterface.kt")
|
||||
public void testNeverInterface() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/sealed/NeverInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NeverObject.kt")
|
||||
public void testNeverObject() throws Exception {
|
||||
@@ -27351,12 +27345,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noMultiplatformProjects.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noTopLevelSealedInheritance.kt")
|
||||
public void testNoTopLevelSealedInheritance() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noTopLevelSealedInheritance.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/sourceCompatibility/apiVersion")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user