From 9ad820205eb64c042f3ac842dbdfecbcab05a015 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 19 Sep 2016 10:37:39 +0300 Subject: [PATCH] Partial build fix (new convert to expression body opportunity in quick-fixes) --- .../annotationEntry/nestedGroovyAnnotation.before.Main.kt | 1 + .../createFromUsage/createFunction/call/callInAnnotationEntry.kt | 1 + .../testData/quickfix/decreaseVisibility/exposedParameterType.kt | 1 + .../quickfix/unusedSuppressAnnotation/notForDeprecated.kt | 1 + .../quickfix/unusedSuppressAnnotation/notForJetBrains.kt | 1 + 5 files changed, 5 insertions(+) diff --git a/idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt b/idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt index f6c7b54042e..65accbb5ba2 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt @@ -1,5 +1,6 @@ // "Create annotation 'foo'" "false" // ERROR: Unresolved reference: foo +// ACTION: Convert to expression body // ACTION: Make private // ACTION: Make internal diff --git a/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt b/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt index f1440f507aa..9b85167109a 100644 --- a/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt +++ b/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt @@ -3,6 +3,7 @@ // ACTION: Make internal // ACTION: Make private // ACTION: Rename reference +// ACTION: Convert to expression body // ERROR: Unresolved reference: foo // ERROR: Unresolved reference: bar diff --git a/idea/testData/quickfix/decreaseVisibility/exposedParameterType.kt b/idea/testData/quickfix/decreaseVisibility/exposedParameterType.kt index 97cc116023c..57333374ac1 100644 --- a/idea/testData/quickfix/decreaseVisibility/exposedParameterType.kt +++ b/idea/testData/quickfix/decreaseVisibility/exposedParameterType.kt @@ -3,6 +3,7 @@ // ACTION: Make 'Nested' internal // ACTION: Make 'Nested' public // ACTION: Remove parameter 'arg' +// ACTION: Convert to expression body // ERROR: 'internal' function exposes its 'private' parameter type argument Nested // ERROR: Cannot access 'Nested': it is private in 'Outer' diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt b/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt index 067d6f6b027..13fb19bb4d5 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt +++ b/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt @@ -1,5 +1,6 @@ // "Suppress for declarations annotated by 'kotlin.Deprecated'" "false" // ACTION: Safe delete 'foo' // ACTION: Create test +// ACTION: Convert to expression body @Deprecated("") fun foo(){} diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt b/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt index dfcca8efce2..1c9efa73133 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt +++ b/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt @@ -1,6 +1,7 @@ // "Suppress for declarations annotated by 'org.jetbrains.annotations.NonNls'" "false" // ACTION: Safe delete 'foo' // ACTION: Create test +// ACTION: Convert to expression body import org.jetbrains.annotations.NonNls @NonNls