Files
kotlin-fork/libraries/tools/kotlinp/testData/ValueClass.txt
T
Alexander Udalov afd35accd8 Do not write version requirements for InlineClasses
Language feature InlineClasses is enabled since 1.3. The current lowest
supported language version is 1.4, so any compiler that can read
binaries produced by the current compiler also supports inline classes,
which means that the version requirement is not needed anymore.

No issue reported because it's mostly not a user-visible change. The
main effect is that it reduces differences in metadata between K1 and
K2, because K2 never supported writing this version requirement properly
due to the TODO in `hasInlineClassTypesInSignature`.
2023-07-31 13:05:29 +00:00

86 lines
2.9 KiB
Plaintext
Vendored

// A.class
// ------------------------------------------
public final value class A : kotlin/Any {
// signature: constructor-impl(Ljava/lang/Integer;)Ljava/lang/Integer;
public constructor(i: kotlin/Int?)
// signature: equals-impl(Ljava/lang/Integer;Ljava/lang/Object;)Z
public open /* synthesized */ operator fun equals(other: kotlin/Any?): kotlin/Boolean
// signature: hashCode-impl(Ljava/lang/Integer;)I
public open /* synthesized */ fun hashCode(): kotlin/Int
// signature: toString-impl(Ljava/lang/Integer;)Ljava/lang/String;
public open /* synthesized */ fun toString(): kotlin/String
// field: i:Ljava/lang/Integer;
private final val i: kotlin/Int?
private final get
// underlying property: i
// underlying type: kotlin/Int?
// module name: test-module
}
// B.class
// ------------------------------------------
public final value class B : kotlin/Any {
// requires language version 1.3.0 (level=ERROR)
// signature: constructor-impl(Lkotlin/jvm/functions/Function1;)Lkotlin/jvm/functions/Function1;
public constructor(f: suspend kotlin/Function1<kotlin/coroutines/Continuation<kotlin/Unit>, kotlin/Any?>)
// signature: equals-impl(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;)Z
public open /* synthesized */ operator fun equals(other: kotlin/Any?): kotlin/Boolean
// signature: hashCode-impl(Lkotlin/jvm/functions/Function1;)I
public open /* synthesized */ fun hashCode(): kotlin/Int
// signature: toString-impl(Lkotlin/jvm/functions/Function1;)Ljava/lang/String;
public open /* synthesized */ fun toString(): kotlin/String
// requires language version 1.3.0 (level=ERROR)
// field: f:Lkotlin/jvm/functions/Function1;
private final val f: suspend kotlin/Function1<kotlin/coroutines/Continuation<kotlin/Unit>, kotlin/Any?>
private final get
// underlying property: f
// underlying type: suspend kotlin/Function1<kotlin/coroutines/Continuation<kotlin/Unit>, kotlin/Any?>
// module name: test-module
}
// Z.class
// ------------------------------------------
public final value class Z : kotlin/Any {
// signature: constructor-impl(Ljava/lang/String;)Ljava/lang/String;
public constructor(s: kotlin/String)
// signature: equals-impl(Ljava/lang/String;Ljava/lang/Object;)Z
public open /* synthesized */ operator fun equals(other: kotlin/Any?): kotlin/Boolean
// signature: hashCode-impl(Ljava/lang/String;)I
public open /* synthesized */ fun hashCode(): kotlin/Int
// signature: toString-impl(Ljava/lang/String;)Ljava/lang/String;
public open /* synthesized */ fun toString(): kotlin/String
// field: s:Ljava/lang/String;
// getter: getS()Ljava/lang/String;
public final val s: kotlin/String
public final get
// underlying property: s
// underlying type: kotlin/String
// module name: test-module
}
// META-INF/test-module.kotlin_module
// ------------------------------------------
module {
}