tek / splain

better implicit errors for scala
MIT License
370 stars 29 forks source link

Error message when assigning value of type A to Tuple[A] #40

Closed felher closed 3 years ago

felher commented 3 years ago

Hi there :)

Thank you very much for this plugin, it is really helpful!

I've stumbled upon one thing today, though:

val a: Tuple1[String] = "blar"

leads to the error message

type mismatch; String|String

Is there any way that this could be improved by noting that one of those is in a tuple, using (String,) or Tuple1[String] maybe?

tek commented 3 years ago

good point. and done!

felher commented 3 years ago

Great. Thank you!