diff --git a/idea/testData/quickfix/anonymousObject.kt b/idea/testData/quickfix/anonymousObject.kt index e7c3e210113..2143b9d6371 100644 --- a/idea/testData/quickfix/anonymousObject.kt +++ b/idea/testData/quickfix/anonymousObject.kt @@ -1,7 +1,7 @@ // "Make 'object : T {}' abstract" "false" // ACTION: Implement members // ACTION: Split property declaration -// ERROR: Object must be declared abstract or implement abstract member
internal abstract fun foo(): kotlin.Unit defined in T +// ERROR: Object must be declared abstract or implement abstract member
public abstract fun foo(): kotlin.Unit defined in T interface T { fun foo() } diff --git a/idea/testData/quickfix/autoImports/minusOperator.after.kt b/idea/testData/quickfix/autoImports/minusOperator.after.kt index 8d4e807121c..cd1aa02b96c 100644 --- a/idea/testData/quickfix/autoImports/minusOperator.after.kt +++ b/idea/testData/quickfix/autoImports/minusOperator.after.kt @@ -1,5 +1,5 @@ // "Import" "true" -// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: +// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: package h diff --git a/idea/testData/quickfix/autoImports/minusOperator.before.Main.kt b/idea/testData/quickfix/autoImports/minusOperator.before.Main.kt index 7baf001c148..a2e861be294 100644 --- a/idea/testData/quickfix/autoImports/minusOperator.before.Main.kt +++ b/idea/testData/quickfix/autoImports/minusOperator.before.Main.kt @@ -1,5 +1,5 @@ // "Import" "true" -// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: +// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: package h diff --git a/idea/testData/quickfix/autoImports/unaryPlusOperator.after.kt b/idea/testData/quickfix/autoImports/unaryPlusOperator.after.kt index b030430ae17..199115ad317 100644 --- a/idea/testData/quickfix/autoImports/unaryPlusOperator.after.kt +++ b/idea/testData/quickfix/autoImports/unaryPlusOperator.after.kt @@ -1,5 +1,5 @@ // "Import" "true" -// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: +// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: package h diff --git a/idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt b/idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt index 111d52305d4..2e15fb97bd4 100644 --- a/idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt +++ b/idea/testData/quickfix/autoImports/unaryPlusOperator.before.Main.kt @@ -1,5 +1,5 @@ // "Import" "true" -// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: +// ERROR: Unresolved reference.
None of the following candidates is applicable because of receiver type mismatch: package h diff --git a/idea/testData/quickfix/changeSignature/addParameterWithImport.after.kt b/idea/testData/quickfix/changeSignature/addParameterWithImport.after.kt index d2d07a0fe6e..29d63259b00 100644 --- a/idea/testData/quickfix/changeSignature/addParameterWithImport.after.kt +++ b/idea/testData/quickfix/changeSignature/addParameterWithImport.after.kt @@ -1,5 +1,5 @@ // "Add parameter to function 'foo'" "true" -// ERROR: Too many arguments for internal fun foo(): kotlin.Unit defined in b +// ERROR: Too many arguments for public fun foo(): kotlin.Unit defined in b package a import b.foo diff --git a/idea/testData/quickfix/changeSignature/addParameterWithImport.before.Main.kt b/idea/testData/quickfix/changeSignature/addParameterWithImport.before.Main.kt index 35dde624b32..ebc8f773ee2 100644 --- a/idea/testData/quickfix/changeSignature/addParameterWithImport.before.Main.kt +++ b/idea/testData/quickfix/changeSignature/addParameterWithImport.before.Main.kt @@ -1,5 +1,5 @@ // "Add parameter to function 'foo'" "true" -// ERROR: Too many arguments for internal fun foo(): kotlin.Unit defined in b +// ERROR: Too many arguments for public fun foo(): kotlin.Unit defined in b package a import b.foo diff --git a/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt b/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt index 4957f8da81b..72e6bbf36f2 100644 --- a/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt +++ b/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt @@ -1,5 +1,5 @@ // "class org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix" "false" -//ERROR: Too many arguments for internal final fun component1(): kotlin.Int defined in Data +//ERROR: Too many arguments for public final fun component1(): kotlin.Int defined in Data data class Data(val i: Int) {} diff --git a/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt.after b/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt.after index 0bb6720b756..cb30f0aa318 100644 --- a/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt.after +++ b/idea/testData/quickfix/changeSignature/notAvailableForSynthesized.kt.after @@ -1,5 +1,5 @@ // "class org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix" "false" -//ERROR: Too many arguments for internal final fun component1(): kotlin.Int defined in Data +//ERROR: Too many arguments for public final fun component1(): kotlin.Int defined in Data data class Data(val i: Int) {} 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 6e8f5b1b3ec..3d767053060 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/annotationEntry/nestedGroovyAnnotation.before.Main.kt @@ -1,7 +1,7 @@ // "Create annotation 'foo'" "false" // ERROR: Unresolved reference: foo // ACTION: Make private -// ACTION: Make public +// ACTION: Make internal J.foo(1, "2") fun test() { diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt index f641b272254..bfe5ee6eb24 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationNotQualifierWithTypeArgs.kt @@ -6,4 +6,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): A = throw Throwable("") \ No newline at end of file +internal fun foo(): A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationQualifierNoTypeArgs.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationQualifierNoTypeArgs.kt index 91cf14d2b87..b74c022e923 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationQualifierNoTypeArgs.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/annotationQualifierNoTypeArgs.kt @@ -8,4 +8,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): A.B = throw Throwable("") \ No newline at end of file +internal fun foo(): A.B = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/classGroovyTypeReceiver.before.Main.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/classGroovyTypeReceiver.before.Main.kt index df8d23da9d5..516b9d46340 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/classGroovyTypeReceiver.before.Main.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/classGroovyTypeReceiver.before.Main.kt @@ -2,4 +2,4 @@ // ACTION: Convert to block body // ACTION: Remove explicit type specification // ERROR: Unresolved reference: A -fun foo(): J.A = throw Throwable("") \ No newline at end of file +internal fun foo(): J.A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/classLibTypeReceiver.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/classLibTypeReceiver.kt index faa407f9843..0a57cca0bd1 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/classLibTypeReceiver.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/classLibTypeReceiver.kt @@ -4,4 +4,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): Int.A = throw Throwable("") \ No newline at end of file +internal fun foo(): Int.A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryJavaEnumReceiver.before.Main.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryJavaEnumReceiver.before.Main.kt index 08cfa4beaef..662ff0b7f24 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryJavaEnumReceiver.before.Main.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryJavaEnumReceiver.before.Main.kt @@ -6,4 +6,4 @@ // ACTION: Create enum 'A' // ACTION: Create interface 'A' // ERROR: Unresolved reference: A -fun foo(): J.A = throw Throwable("") \ No newline at end of file +internal fun foo(): J.A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryNotQualifierNoTypeArgs.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryNotQualifierNoTypeArgs.kt index a0a4510e66e..38efd50084f 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryNotQualifierNoTypeArgs.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumEntryNotQualifierNoTypeArgs.kt @@ -8,4 +8,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): A = throw Throwable("") \ No newline at end of file +internal fun foo(): A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierWithTypeArgs.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierWithTypeArgs.kt index b58910ffa47..6fc187b6373 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierWithTypeArgs.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/enumNotQualifierWithTypeArgs.kt @@ -6,4 +6,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): A = throw Throwable("") \ No newline at end of file +internal fun foo(): A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierNoTypeArgs.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierNoTypeArgs.kt index 01a2d1ee6b7..2beb768d361 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierNoTypeArgs.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierNoTypeArgs.kt @@ -8,4 +8,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): A = throw Throwable("") \ No newline at end of file +internal fun foo(): A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierWithTypeArgs.kt b/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierWithTypeArgs.kt index 9c9a52d7544..edbc437c6d4 100644 --- a/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierWithTypeArgs.kt +++ b/idea/testData/quickfix/createFromUsage/createClass/typeReference/objectNotQualifierWithTypeArgs.kt @@ -6,4 +6,4 @@ // ERROR: Unresolved reference: A package p -fun foo(): A = throw Throwable("") \ No newline at end of file +internal fun foo(): A = throw Throwable("") \ No newline at end of file diff --git a/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt b/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt index df762e1e3f7..34ac4072417 100644 --- a/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt +++ b/idea/testData/quickfix/createFromUsage/createFunction/call/callInAnnotationEntry.kt @@ -1,7 +1,7 @@ // "Create function 'bar'" "false" // ACTION: Create annotation 'bar' +// ACTION: Make internal // ACTION: Make private -// ACTION: Make public // ERROR: Unresolved reference: foo // ERROR: Unresolved reference: bar diff --git a/idea/testData/quickfix/deprecatedSymbolUsage/callWithError.kt b/idea/testData/quickfix/deprecatedSymbolUsage/callWithError.kt index 7f7a26c5eb2..5f51b7d11ad 100644 --- a/idea/testData/quickfix/deprecatedSymbolUsage/callWithError.kt +++ b/idea/testData/quickfix/deprecatedSymbolUsage/callWithError.kt @@ -1,5 +1,5 @@ // "class org.jetbrains.kotlin.idea.quickfix.replaceWith.DeprecatedSymbolUsageFix" "false" -// ERROR: Too many arguments for kotlin.Deprecated internal fun oldFun(): kotlin.Unit defined in root package +// ERROR: Too many arguments for kotlin.Deprecated public fun oldFun(): kotlin.Unit defined in root package @Deprecated("", ReplaceWith("newFun()")) fun oldFun() { diff --git a/idea/testData/quickfix/modifiers/visibilityModiferParameter.kt.after b/idea/testData/quickfix/modifiers/visibilityModiferParameter.kt.after index 4f2cf24af5c..e09ef4e1d99 100644 --- a/idea/testData/quickfix/modifiers/visibilityModiferParameter.kt.after +++ b/idea/testData/quickfix/modifiers/visibilityModiferParameter.kt.after @@ -4,6 +4,6 @@ interface ParseResult { public val value : T } -class Success(public override val value : T) : ParseResult { +class Success(override val value : T) : ParseResult { public override val success : Boolean = true } \ No newline at end of file diff --git a/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt b/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt index a2b3760a5e5..92fdf91fb81 100644 --- a/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt +++ b/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt @@ -1,5 +1,5 @@ // "Change function signature..." "true" -// ERROR: Class 'B' must be declared abstract or implement abstract member
internal abstract fun f(a: kotlin.String): kotlin.Unit defined in A +// ERROR: Class 'B' must be declared abstract or implement abstract member
public abstract fun f(a: kotlin.String): kotlin.Unit defined in A interface A { fun f(a: Int) fun f(a: String) diff --git a/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt.after b/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt.after index aa6e26b3103..a0d0c1bb67b 100644 --- a/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt.after +++ b/idea/testData/quickfix/override/nothingToOverride/addParameterMultiple.kt.after @@ -1,10 +1,10 @@ // "Change function signature..." "true" -// ERROR: Class 'B' must be declared abstract or implement abstract member
internal abstract fun f(a: kotlin.String): kotlin.Unit defined in A +// ERROR: Class 'B' must be declared abstract or implement abstract member
public abstract fun f(a: kotlin.String): kotlin.Unit defined in A interface A { fun f(a: Int) fun f(a: String) } class B : A { - override fun f(a: Int) {} + override fun f(a: Int) {} } diff --git a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeMultipleOverriddenPropertiesTypes.kt b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeMultipleOverriddenPropertiesTypes.kt index cfcf99eccfb..9ade4150f35 100644 --- a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeMultipleOverriddenPropertiesTypes.kt +++ b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeMultipleOverriddenPropertiesTypes.kt @@ -1,6 +1,6 @@ // "Change 'A.x' type to '(Int) -> Int'" "false" // ACTION: Change 'C.x' type to '(String) -> Int' -// ERROR: Return type is '(kotlin.Int) → kotlin.Int', which is not a subtype of overridden
internal abstract val x: (kotlin.String) → kotlin.Int defined in A +// ERROR: Return type is '(kotlin.Int) → kotlin.Int', which is not a subtype of overridden
public abstract val x: (kotlin.String) → kotlin.Int defined in A interface A { val x: (String) -> Int } diff --git a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeOverriddenPropertyTypeToMatchOverridingProperty.kt b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeOverriddenPropertyTypeToMatchOverridingProperty.kt index 41863bf92a4..cac7ada2013 100644 --- a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeOverriddenPropertyTypeToMatchOverridingProperty.kt +++ b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeOverriddenPropertyTypeToMatchOverridingProperty.kt @@ -1,5 +1,5 @@ // "class org.jetbrains.kotlin.idea.quickfix.ChangeVariableTypeFix" "false" -// ERROR: Var-property type is 'kotlin.String', which is not a type of overridden
internal abstract var x: kotlin.Int defined in A +// ERROR: Var-property type is 'kotlin.String', which is not a type of overridden
public abstract var x: kotlin.Int defined in A interface A { var x: Int } diff --git a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangePropertyTypeToMatchOverridenProperties.kt b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangePropertyTypeToMatchOverridenProperties.kt index 16e43a10873..3968a19c0f8 100644 --- a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangePropertyTypeToMatchOverridenProperties.kt +++ b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangePropertyTypeToMatchOverridenProperties.kt @@ -1,5 +1,5 @@ // "class org.jetbrains.kotlin.idea.quickfix.ChangeVariableTypeFix" "false" -// ERROR: Var-property type is 'kotlin.Int', which is not a type of overridden
internal abstract var x: kotlin.String defined in A +// ERROR: Var-property type is 'kotlin.Int', which is not a type of overridden
public abstract var x: kotlin.String defined in A interface A { var x: String } diff --git a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeReturnTypeOfOverriddenFunction.kt b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeReturnTypeOfOverriddenFunction.kt index c29416af000..d4b5576a195 100644 --- a/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeReturnTypeOfOverriddenFunction.kt +++ b/idea/testData/quickfix/override/typeMismatchOnOverride/cantChangeReturnTypeOfOverriddenFunction.kt @@ -1,5 +1,5 @@ // "class org.jetbrains.kotlin.idea.quickfix.ChangeFunctionReturnTypeFix" "false" -// ERROR: Return type is 'kotlin.Long', which is not a subtype of overridden
internal abstract fun foo(): kotlin.Int defined in A +// ERROR: Return type is 'kotlin.Long', which is not a subtype of overridden
public abstract fun foo(): kotlin.Int defined in A interface A { fun foo(): Int } diff --git a/idea/testData/quickfix/override/typeMismatchOnOverride/returnTypeMismatchOnMultipleOverrideAmbiguity.kt b/idea/testData/quickfix/override/typeMismatchOnOverride/returnTypeMismatchOnMultipleOverrideAmbiguity.kt index d19e800e02a..444b07b23d7 100644 --- a/idea/testData/quickfix/override/typeMismatchOnOverride/returnTypeMismatchOnMultipleOverrideAmbiguity.kt +++ b/idea/testData/quickfix/override/typeMismatchOnOverride/returnTypeMismatchOnMultipleOverrideAmbiguity.kt @@ -1,7 +1,7 @@ // "Change 'B.foo' function return type to 'Int'" "false" // "Change 'B.foo' function return type to 'Long'" "false" // "Remove explicitly specified return type" "false" -// ERROR: Return type is 'kotlin.String', which is not a subtype of overridden
internal abstract fun foo(): kotlin.Int defined in A +// ERROR: Return type is 'kotlin.String', which is not a subtype of overridden
public abstract fun foo(): kotlin.Int defined in A abstract class A { abstract fun foo() : Int; } diff --git a/idea/testData/quickfix/typeMismatch/dontChangeOverriddenPropertyTypeToErrorType.kt b/idea/testData/quickfix/typeMismatch/dontChangeOverriddenPropertyTypeToErrorType.kt index c43f72601c6..753ae956121 100644 --- a/idea/testData/quickfix/typeMismatch/dontChangeOverriddenPropertyTypeToErrorType.kt +++ b/idea/testData/quickfix/typeMismatch/dontChangeOverriddenPropertyTypeToErrorType.kt @@ -1,6 +1,6 @@ // "Change 'B.x' type to '(String) -> [ERROR : Ay]'" "false" // ACTION: Change 'A.x' type to '(Int) -> Int' -// ERROR: Return type is '(kotlin.Int) → kotlin.Int', which is not a subtype of overridden
internal abstract val x: (kotlin.String) → [ERROR : Ay] defined in A +// ERROR: Return type is '(kotlin.Int) → kotlin.Int', which is not a subtype of overridden
public abstract val x: (kotlin.String) → [ERROR : Ay] defined in A // ERROR: Unresolved reference: Ay interface A { val x: (String) -> Ay diff --git a/idea/testData/quickfix/variables/removeValVarFromParameter/constructorParameter.kt b/idea/testData/quickfix/variables/removeValVarFromParameter/constructorParameter.kt index 4fcdce09080..9d0cb299f77 100644 --- a/idea/testData/quickfix/variables/removeValVarFromParameter/constructorParameter.kt +++ b/idea/testData/quickfix/variables/removeValVarFromParameter/constructorParameter.kt @@ -1,5 +1,5 @@ // "Remove 'val' from parameter" "false" +// ACTION: Make internal // ACTION: Make private -// ACTION: Make public class C(val x: String) { } \ No newline at end of file