summaryrefslogblamecommitdiff
path: root/test/files/neg/overload.check
blob: 5f7644eda75961fb992527fb0c7d3055aeaa723a (plain) (tree)
1
2
3
4
5
6
7
                                                                       

                                                                   

                        
           
               
overload.scala:10: error: erroneous reference to overloaded definition,
most specific definition is: method f in class C of type (int)Unit,
yet alternative definition   method f in class D of type (Any)Unit
is defined in a subclass
  (new D).f(1)
          ^
one error found