We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public class Exception { public <T> Exception(T actual, T matcher) { } public <T> Object foo(T actual, T matcher) { return null; } }
-- [E006] Unbound Identifier Error: tests/pos/Exception.java:2:25 ------------------------------------------------------ 2 | public <T> Exception(T actual, T matcher) { } | ^ | Not found: type T -- [E006] Unbound Identifier Error: tests/pos/Exception.java:2:35 ------------------------------------------------------ 2 | public <T> Exception(T actual, T matcher) { } | ^ | Not found: type T
The code should type check.
The text was updated successfully, but these errors were encountered:
Fix scala#8042: add forgotten Java constructor type params
e6f267c
For primary constructor, we always add the class parameters during parsing. For secondary constructors, we add class parameters during desugaring.
Merge pull request #8075 from dotty-staging/fix-8042
899c59b
Fix #8042: add forgotten Java constructor type params
liufengyun
Successfully merging a pull request may close this issue.
minimized code
expectation
The code should type check.
The text was updated successfully, but these errors were encountered: