diff options
Diffstat (limited to 'tests/untried/neg/t6138.check')
-rw-r--r-- | tests/untried/neg/t6138.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t6138.check b/tests/untried/neg/t6138.check new file mode 100644 index 000000000..8fd997824 --- /dev/null +++ b/tests/untried/neg/t6138.check @@ -0,0 +1,7 @@ +t6138.scala:4: error: ambiguous reference to overloaded definition, +both method getClass in object definitions of type (s: Int)Any +and method getClass in object definitions of type (s: String)Any +match argument types (Nothing) + getClass(???): String + ^ +one error found |