summaryrefslogtreecommitdiff
path: root/test/files/neg/t556.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-06-12 04:50:00 -0400
committerPaul Phillips <paulp@improving.org>2013-06-13 08:49:21 -0400
commitede32ba3421be657a4369b847e60d5fb2b9def14 (patch)
tree27245ef1a38020a173e9a816f5087246ffa63ddb /test/files/neg/t556.check
parentf790662a3eab1e8efce5d4096d0efbae96cf45b4 (diff)
downloadscala-ede32ba3421be657a4369b847e60d5fb2b9def14.tar.gz
scala-ede32ba3421be657a4369b847e60d5fb2b9def14.tar.bz2
scala-ede32ba3421be657a4369b847e60d5fb2b9def14.zip
SI-6221 inference with Function1 subtypes.
There appears to be no upper bound on the number of places we have to remove calls to typeSymbol and introduce calls to baseType. This one was type inference for function parameter types: worked when expected type was A => B, but not if there was an implicit conversion from A => B to the expected type.
Diffstat (limited to 'test/files/neg/t556.check')
-rw-r--r--test/files/neg/t556.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/t556.check b/test/files/neg/t556.check
index c278e13991..5135dc92ef 100644
--- a/test/files/neg/t556.check
+++ b/test/files/neg/t556.check
@@ -1,4 +1,4 @@
-t556.scala:3: error: wrong number of parameters; expected = 1
+t556.scala:3: error: missing parameter type
def g:Int = f((x,y)=>x)
- ^
+ ^
one error found