Add @JvmInline annotation in common code if JVM target is present

#KTIJ-8863 Fixed
 #KT-46088 Fixed
This commit is contained in:
Ilmir Usmanov
2021-04-19 12:14:53 +02:00
committed by TeamCityServer
parent 00bc04b3df
commit f5379c5a04
8 changed files with 59 additions and 3 deletions
@@ -0,0 +1,3 @@
// "Replace with 'value'" "true"
<caret>inline class IC1(val i: Int)
@@ -0,0 +1,3 @@
// "Replace with 'value'" "true"
value class IC1(val i: Int)
@@ -0,0 +1,4 @@
// "Replace with '@JvmInline value'" "true"
// DISABLE-ERRORS
<caret>inline class IC(val i: Int)
@@ -0,0 +1,5 @@
// "Replace with '@JvmInline value'" "true"
// DISABLE-ERRORS
@kotlin.jvm.JvmInline
value class IC(val i: Int)
@@ -0,0 +1,4 @@
// "Replace with '@JvmInline value'" "true"
// DISABLE-ERRORS
<caret>inline class IC(val i: Int)
@@ -0,0 +1,5 @@
// "Replace with '@JvmInline value'" "true"
// DISABLE-ERRORS
@kotlin.jvm.JvmInline
value class IC(val i: Int)