Added QuickFix for redundant type projections.

This commit is contained in:
Jack Zhou
2013-01-19 15:33:38 -08:00
committed by Evgeny Gerashchenko
parent e384d4ec96
commit 8d71840255
6 changed files with 51 additions and 0 deletions
@@ -0,0 +1,8 @@
// "Remove redundant 'out' modifier" "true"
class Foo<out T> {
val x = 0
}
fun bar(x : Foo<Any>) {
}
@@ -0,0 +1,8 @@
// "Remove redundant 'in' modifier" "true"
class Foo<in T> {
val x = 0
}
fun bar(x : Foo<Any>) {
}
@@ -0,0 +1,8 @@
// "Remove redundant 'out' modifier" "true"
class Foo<out T> {
val x = 0
}
fun bar(x : Foo< out<caret> Any>) {
}
@@ -0,0 +1,8 @@
// "Remove redundant 'in' modifier" "true"
class Foo<in T> {
val x = 0
}
fun bar(x : Foo< in<caret> Any>) {
}