Do not suggest to add variance modifier if both in and out are possible

This commit is contained in:
Mikhail Glukhikh
2016-04-15 16:16:29 +03:00
parent e60930d5ce
commit c7b2042b77
5 changed files with 5 additions and 14 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ abstract class AbstractOut<T> {
abstract class AbstractIn<T>(private val foo: T) {
fun bar(arg: T) = foo == arg
}
interface Empty<T>
interface Empty<T> // here we do not report anything to avoid ambiguity
abstract class AbstractInv<T>(var foo: T)