Use FQCN in type error message if two or more types have the same name #17842
Closed
hnrklssn
started this conversation in
Feature Requests
Replies: 1 comment
-
moved to #18678 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently encountered a confusing type error message because I had absentmindedly named a class
String
(details here). The error message did not clarify however that the two types named were in fact not the same class. As this was the first time trying out Scala 3, I thought it was due to some new dependent typing for string literals, but couldn’t figure out the proper syntax for it. I think it would have been quite helpful if the error message replaced the type names with their FQCNs when they clash with another one. Potentially even if that other class is not named in the message, but is available in the current scope, just to be explicit.Beta Was this translation helpful? Give feedback.
All reactions