-
Notifications
You must be signed in to change notification settings - Fork 381
Open
Description
If I try to run code like this, I get:
Welcome to Scala 2.12.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_162-ea).
Type in expressions for evaluation. Or try :help.
scala> { def f(x1: Int, x2: Int) = x1 + x2 ; f }
<console>:12: error: missing argument list for method f
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `f _` or `f(_,_)` instead of `f`.
{ def f(x1: Int, x2: Int) = x1 + x2 ; f }
^
scala>
Metadata
Metadata
Assignees
Labels
No labels