blob: dfe48f9544e9db9a3adbf41a850ccf2460b65393 (
plain) (
tree)
|
|
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] = system.error("foo") // since x in m[x] is invariant, ! m[String] <: m[Object]
^
one error found
|