-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.1.2 compiler emits an error - Type argument B does not conform to lower bound String for export of a Seq value #14953
Comments
It looks like the bound on a default arg method.
Or, minimized
which looks like
For an error in synthetic code where the caret isn't helpful, it would be nice if the message could capture enough context (such as the enclosing definition) to pretty print with the caret. |
My code uses only the Seq#head method and when I did the I realised the |
My comment explains that the export exports the wrong signature for the default arg methods. The signature includes the type param of the "source" method even if not used, and the bound should be |
Noted with thanks. I thought I could provide more context on my |
The following code compiles in Scala 3.1.1 and with Scala 3.1.2, the compiler emits the following error - Type argument B does not conform to lower bound String
The text was updated successfully, but these errors were encountered: