KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
See this example: def hello(a:String, b:String) = println(a + ":" + b) val m1 = hello("aaa", _ ) m1("bbb") It can't be compiled, that I need to add the type to the partial method: val m1 = hello("aaa", _: String) Why scala doesn't know the 2nd parameter of method hello is String ?
Tags (comma-separated)
Save Edits
Cancel