twitter / rsc

Experimental Scala compiler focused on compilation speed
Apache License 2.0
1.24k stars 54 forks source link

Function of a single tuple is ascribed incorrect parentheses #475

Open wiwa opened 5 years ago

wiwa commented 5 years ago

Expected:

def foo = (x: (String, Int)) => x._2

Obtained:

def foo: (String, Int) => Int = (x: (String, Int)) => x._2

Expected:

def foo: ((String, Int)) => Int = (x: (String, Int)) => x._2