diff options
author | Martin Odersky <odersky@gmail.com> | 2003-09-15 20:10:24 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-09-15 20:10:24 +0000 |
commit | 1b77651f90d9b4132e419409295f0d3c6153cf41 (patch) | |
tree | 6cee2b5116466066134cdbeacf809ba878546764 /test/neg/overload.check | |
parent | 01d4668fc81fbbb245d145086ceea0755848a383 (diff) | |
download | scala-1b77651f90d9b4132e419409295f0d3c6153cf41.tar.gz scala-1b77651f90d9b4132e419409295f0d3c6153cf41.tar.bz2 scala-1b77651f90d9b4132e419409295f0d3c6153cf41.zip |
*** empty log message ***
Diffstat (limited to 'test/neg/overload.check')
-rw-r--r-- | test/neg/overload.check | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/neg/overload.check b/test/neg/overload.check new file mode 100644 index 0000000000..011f10de7f --- /dev/null +++ b/test/neg/overload.check @@ -0,0 +1,19 @@ +overload.scala:15: x is already defined as value x in class Test + var x: int = 3; + ^ +overload.scala:5: foo is already defined in local scope + def foo() = 2; + ^ +overload.scala:11: ambiguous reference to overloaded definition, +both method foo: ()scala.Int +and method foo: ()scala.Int +match argument types () + foo(); + ^ +overload.scala:13: ambiguous reference to overloaded definition, +both value x$: scala.Int +and variable x$: scala.Int +match expected type scala.Int + val x: int = 1; + ^ +four errors found |