-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Export of class fails with "constructor proxy ... cannot be used as a value" #11128
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
Labels
Milestone
Comments
Tested that error is the same with 3536773 (current master). |
As a workaround, adding a dummy
|
minimised to package foo
object Wrap {
export foo.Bar
}
class Bar |
I believe we just need another condition on line 998 of Namer.scala
should be |
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 18, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 18, 2021
odersky
added a commit
that referenced
this issue
Jan 18, 2021
fix #11128: skip ctor proxy in named export
unkarjedy
added a commit
to unkarjedy/dotty
that referenced
this issue
Aug 19, 2021
Currently, the docs say: > A member is eligible if all of the following holds: > ... > it is not a constructor, nor the (synthetic) class part of an object, However, constructor proxies are exported and they are synthetic related: scala#11128
This was referenced Aug 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
With Scala 3.0.0-M3
Minimized code
A minimal example consisting of the two source files below is on GitHub.
package.scala
Bar.scala
Output
Expectation
Code should compile without errors.
The text was updated successfully, but these errors were encountered: