-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DottyDoc fails on valid overloaded constructor with js.UndefOr[_] #12215
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
Comments
@sjrd Interestingly - this similar code presents no issues with DottyDoc: class Foo(a: String, b: Option[String]):
def this(b: Option[String]) = this("default", b) |
Looks like a duplicate of #11943 |
This also works fine - which seems really odd to me because it's exactly the equivalent type of js.UndefOr :) import scala.annotation.unchecked.uncheckedVariance
type UO[+A] = (A @uncheckedVariance) | Unit
class Foo(a: String, b: UO[String]):
def this(b: UO[String]) = this("default", b) |
Closing since this is fixed in Scala 3.0.1-RC1 / sbt 1.5.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Compiler version 3.0.0-RC3
Minimized example
Output
Expectation
This code compiles correctly - so it seems DottyDoc should handle it correctly.
The text was updated successfully, but these errors were encountered: