blob: 0695fa09a15d4620f1e95b30bbe3ccefa9374532 (
plain) (
blame)
1
2
3
4
5
|
tcpoly_variance.scala:6: error: overriding method str in class A of type => m[java.lang.Object];
method str has incompatible type
override def str: m[String] = sys.error("foo") // since x in m[x] is invariant, ! m[String] <: m[Object]
^
one error found
|