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`.
This commit is contained in:
committed by
Space Team
parent
9e50a3b71d
commit
afd35accd8
@@ -5,11 +5,4 @@ inline class IC(val x: Int)
|
||||
class C {
|
||||
fun returnsInlineClassType(): IC = IC(42)
|
||||
val propertyOfInlineClassType: IC get() = IC(42)
|
||||
|
||||
@Suppress("INAPPLICABLE_JVM_NAME")
|
||||
@JvmName("returnsInlineClassTypeJvmName")
|
||||
fun returnsInlineClassTypeJvmName(): IC = IC(42)
|
||||
}
|
||||
|
||||
fun returnsInlineClassType(): IC = IC(42)
|
||||
val propertyOfInlineClassType: IC get() = IC(42)
|
||||
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
package test
|
||||
|
||||
inline class IC(val x: String)
|
||||
|
||||
typealias ICAlias = IC
|
||||
|
||||
class Ctor(ic: IC)
|
||||
|
||||
fun simpleFun(f: IC) {}
|
||||
fun aliasedFun(f: ICAlias) {}
|
||||
|
||||
val simpleProp: IC = IC("")
|
||||
|
||||
fun result(r: List<Result<Any>?>) {}
|
||||
|
||||
abstract class Foo : List<IC>
|
||||
interface Bar<T : IC>
|
||||
Reference in New Issue
Block a user