Add 'value' modifier to modifier order
Otherwise, there will be unfixable 'non-canonical modifier order' warning #KT-46088 #KTIJ-5636 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
7525d9a1ce
commit
7b14975740
@@ -155,6 +155,7 @@ val MODIFIERS_ORDER = listOf(
|
||||
ENUM_KEYWORD, ANNOTATION_KEYWORD, FUN_KEYWORD,
|
||||
COMPANION_KEYWORD,
|
||||
INLINE_KEYWORD,
|
||||
VALUE_KEYWORD,
|
||||
INFIX_KEYWORD,
|
||||
OPERATOR_KEYWORD,
|
||||
DATA_KEYWORD
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Create actual class for module testModule_JVM (JVM)" "true"
|
||||
|
||||
expect value class <caret>IC(val i: Int)
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Create actual class for module testModule_JVM (JVM)" "true"
|
||||
|
||||
expect value class IC(val i: Int)
|
||||
@@ -0,0 +1 @@
|
||||
actual value class IC actual constructor(actual val i: Int)
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Replace with '@JvmInline value'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
public <caret>inline class IC(val i: Int)
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Replace with '@JvmInline value'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
@JvmInline
|
||||
public value class IC(val i: Int)
|
||||
+5
@@ -491,6 +491,11 @@ public class QuickFixMultiModuleTestGenerated extends AbstractQuickFixMultiModul
|
||||
runTest("idea/testData/multiModuleQuickFix/createActual/sealedSubclass/");
|
||||
}
|
||||
|
||||
@TestMetadata("valueClass")
|
||||
public void testValueClass() throws Exception {
|
||||
runTest("idea/testData/multiModuleQuickFix/createActual/valueClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("withFakeJvm")
|
||||
public void testWithFakeJvm() throws Exception {
|
||||
runTest("idea/testData/multiModuleQuickFix/createActual/withFakeJvm/");
|
||||
|
||||
@@ -8423,6 +8423,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
public void testInlineClassDeprecated_js() throws Exception {
|
||||
runTest("idea/testData/quickfix/inlineClass/inlineClassDeprecated_js.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicInlineClass.kt")
|
||||
public void testPublicInlineClass() throws Exception {
|
||||
runTest("idea/testData/quickfix/inlineClass/publicInlineClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/quickfix/inlineClassConstructorNotValParameter")
|
||||
|
||||
Reference in New Issue
Block a user