Closed
Description
Compiler version
tested on rc1 and rc2, linux and windows. Also replicates on Scastie.
Minimized code
def add(a : (Int, String), b : (Int, String)) : (Int, String) = (a(0) + b(0), a(1) + b(1))
Output
(a(0) + b(0), ...) <- Found Long, required Int
Expectation
You would expect this code to compile correctly and accept the fact that a(0) + b(0) is an Int and not a Long
Workaround
Replacing a(0) + b(0) by a._1 + b._1 makes it work correctly
Anton Sviridov on Gitter greatly simplified my original problematic code