Added quickfix for PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT

This commit is contained in:
Agnieszka Paszek
2013-02-15 18:00:25 +01:00
committed by Evgeny Gerashchenko
parent 50f8948706
commit 7c041d5c94
5 changed files with 25 additions and 0 deletions
@@ -203,6 +203,7 @@ public class QuickFixes {
factories.put(NESTED_CLASS_NOT_ALLOWED, AddModifierFix.createFactory(INNER_KEYWORD));
factories.put(CONFLICTING_PROJECTION, RemoveModifierFix.createRemoveProjectionFactory(false));
factories.put(PROJECTION_ON_NON_CLASS_TYPE_ARGUMENT, RemoveModifierFix.createRemoveProjectionFactory(false));
factories.put(NOT_AN_ANNOTATION_CLASS, MakeClassAnAnnotationClassFix.createFactory());
@@ -0,0 +1,6 @@
// "Remove 'out' modifier" "true"
fun foo<T>(x : T) {}
fun bar() {
foo<Int>(44)
}
@@ -0,0 +1,6 @@
// "Remove 'in' modifier" "true"
class A<T> {}
class B {
var foo = A<<caret>Int>()
}
@@ -0,0 +1,6 @@
// "Remove 'out' modifier" "true"
fun foo<T>(x : T) {}
fun bar() {
foo<<caret>out Int>(44)
}
@@ -0,0 +1,6 @@
// "Remove 'in' modifier" "true"
class A<T> {}
class B {
var foo = A<<caret>in Int>()
}