summaryrefslogblamecommitdiff
path: root/test/files/neg/tcpoly_variance.check
blob: 61d7094437d48b26b96c1db21f59728fa38319f5 (plain) (tree)
1
2
3
4
5
                                                                                                      
                                              


                                                                                                      
tcpoly_variance.scala:6: error: error overriding method str in class A of type => m[java.lang.Object];
 method str has incompatible type => m[String]
 override def str: m[String]  = error("foo") // since x in m[x] is invariant, ! m[String] <: m[Object]
          ^
one error found