summaryrefslogblamecommitdiff
path: root/test/files/neg/override.check
blob: 8be98bf4d0cd1505a5ec6651fcee795d98109643 (plain) (tree)
1
2
3
4
5

                                                                                
                                          
                
               
override.scala:9: error: overriding type T in trait A with bounds >: Int <: Int;
 type T in trait B with bounds >: String <: String has incompatible type
  lazy val x : A with B = {println(""); x}
               ^
one error found