-
Notifications
You must be signed in to change notification settings - Fork 21
Incorrect access check error extending Java class without specifying type param #12379
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
Comments
Oh man this was hugely annoying! I wanted to spend 5 minutes trying something out in Scala, and instead it was [more than that] to figure out this message. The comment implies "it doesn't happen in dotty" but of course it's not labeled fixed in dotty because:
It's even more annoying that I saw the recent duplicate and I'd already had morning coffee albeit after poor sleep and it still didn't pop out at me. |
Faced the same issue. NOTE 1: the issue is not reproduced with public constructor |
Dotty has parity with Scala 2 as of 3.2.2. As noted, access check fails during inference when different packages, protected ctor, for either Java or Scala parent. The problem must lie in the the funny context you get, which includes the class params but is not enclosed by the class. Closing as duplicate. |
gives
Note that Scala 3 doesn't allow missing type parameters in parent types
The text was updated successfully, but these errors were encountered: