summaryrefslogtreecommitdiff
path: root/test/files/neg/t8417.check
blob: 6ec9e1d14d0ee14ab4f40bfa7abb96c1af7328a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
t8417.scala:5: warning: Adapting argument list by creating a 2-tuple: this may not be what you want.
        signature: T.f(x: Any)(y: Any): String
  given arguments: "hello", "world"
 after adaptation: T.f(("hello", "world"): (String, String))
  def g = f("hello", "world")("holy", "moly")
           ^
t8417.scala:5: warning: Adapting argument list by creating a 2-tuple: this may not be what you want.
        signature: T.f(x: Any)(y: Any): String
  given arguments: "holy", "moly"
 after adaptation: T.f(("holy", "moly"): (String, String))
  def g = f("hello", "world")("holy", "moly")
                             ^
error: No warnings can be incurred under -Xfatal-warnings.
two warnings found
one error found