Compare commits

...

1 Commits

Author SHA1 Message Date
Ilmir Usmanov
16f96bff40 Add 'value' modifier to modifier order
Otherwise, there will be unfixable 'non-canonical modifier order'
warning
 #KT-46088
2021-04-15 19:28:36 +02:00
4 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,4 @@
// "Replace with '@JvmInline value'" "true"
// WITH_RUNTIME
public <caret>inline class IC(val i: Int)

View File

@@ -0,0 +1,5 @@
// "Replace with '@JvmInline value'" "true"
// WITH_RUNTIME
@JvmInline
public value class IC(val i: Int)

View File

@@ -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")