summaryrefslogtreecommitdiff
path: root/test/files/neg/t2488.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2012-05-18 22:13:58 +0200
committerLukas Rytz <lukas.rytz@epfl.ch>2012-05-18 22:13:58 +0200
commitda994bc9ce2cd9394ccb994fad677a6c67ad2759 (patch)
tree379d865ce2f3266b432b5c2b5359e84b9d5498f5 /test/files/neg/t2488.check
parentef7708812fac32ca0c2a05330222a6b0806c9054 (diff)
downloadscala-da994bc9ce2cd9394ccb994fad677a6c67ad2759.tar.gz
scala-da994bc9ce2cd9394ccb994fad677a6c67ad2759.tar.bz2
scala-da994bc9ce2cd9394ccb994fad677a6c67ad2759.zip
Fix SI-2488
Diffstat (limited to 'test/files/neg/t2488.check')
-rw-r--r--test/files/neg/t2488.check31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/files/neg/t2488.check b/test/files/neg/t2488.check
new file mode 100644
index 0000000000..170dbf88ff
--- /dev/null
+++ b/test/files/neg/t2488.check
@@ -0,0 +1,31 @@
+t2488.scala:7: error: overloaded method value f with alternatives:
+ ()Int <and>
+ (a: Int,b: Int)Int
+ cannot be applied to (b: Int, Int)
+ println(c.f(b = 2, 2))
+ ^
+t2488.scala:8: error: overloaded method value f with alternatives:
+ ()Int <and>
+ (a: Int,b: Int)Int
+ cannot be applied to (a: Int, c: Int)
+ println(c.f(a = 2, c = 2))
+ ^
+t2488.scala:9: error: overloaded method value f with alternatives:
+ ()Int <and>
+ (a: Int,b: Int)Int
+ cannot be applied to (Int, c: Int)
+ println(c.f(2, c = 2))
+ ^
+t2488.scala:10: error: overloaded method value f with alternatives:
+ ()Int <and>
+ (a: Int,b: Int)Int
+ cannot be applied to (c: Int, Int)
+ println(c.f(c = 2, 2))
+ ^
+t2488.scala:11: error: overloaded method value f with alternatives:
+ ()Int <and>
+ (a: Int,b: Int)Int
+ cannot be applied to (Int)
+ println(c.f(2))
+ ^
+5 errors found