diff options
Diffstat (limited to 'tests/untried/neg/overload.check')
-rw-r--r-- | tests/untried/neg/overload.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/overload.check b/tests/untried/neg/overload.check new file mode 100644 index 000000000..abfabaf3f --- /dev/null +++ b/tests/untried/neg/overload.check @@ -0,0 +1,7 @@ +overload.scala:10: error: ambiguous reference to overloaded definition, +both method f in class D of type (x: Any)Unit +and method f in class C of type (x: Int)Unit +match argument types (Int) + (new D).f(1) + ^ +one error found |