diff --git a/idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixes.java b/idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixes.java index f1775739d68..83a8df6eadb 100644 --- a/idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixes.java +++ b/idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixes.java @@ -204,6 +204,7 @@ public class QuickFixes { factories.put(CONFLICTING_PROJECTION, RemoveModifierFix.createRemoveProjectionFactory(false)); factories.put(PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT, RemoveModifierFix.createRemoveProjectionFactory(false)); + factories.put(PROJECTION_IN_IMMEDIATE_ARGUMENT_TO_SUPERTYPE, RemoveModifierFix.createRemoveProjectionFactory(false)); factories.put(NOT_AN_ANNOTATION_CLASS, MakeClassAnAnnotationClassFix.createFactory()); diff --git a/idea/testData/quickfix/typeProjection/afterProjectionInImmediateArgumentToSupertype.kt b/idea/testData/quickfix/typeProjection/afterProjectionInImmediateArgumentToSupertype.kt new file mode 100644 index 00000000000..ab4e941bc3d --- /dev/null +++ b/idea/testData/quickfix/typeProjection/afterProjectionInImmediateArgumentToSupertype.kt @@ -0,0 +1,4 @@ +// "Remove 'in' modifier" "true" +trait A {} + +class B : A {} diff --git a/idea/testData/quickfix/typeProjection/beforeProjectionInImmediateArgumentToSupertype.kt b/idea/testData/quickfix/typeProjection/beforeProjectionInImmediateArgumentToSupertype.kt new file mode 100644 index 00000000000..7706db790ec --- /dev/null +++ b/idea/testData/quickfix/typeProjection/beforeProjectionInImmediateArgumentToSupertype.kt @@ -0,0 +1,4 @@ +// "Remove 'in' modifier" "true" +trait A {} + +class B : A<in Int> {}