Skip to content

Scaladoc: Handle types that were throwing match errors #12553

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

Merged
merged 1 commit into from
May 27, 2021

Conversation

pikinier20
Copy link
Contributor

closes #12327

@pikinier20 pikinier20 requested a review from romanowski May 21, 2021 09:21
case e: AssertionError => texts("LazyRef(...)")
}

case tpe => throw MatchError(tpe.show(using Printer.TypeReprStructure))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should more verbose message that this is a bug and one needs to report it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@pikinier20 pikinier20 force-pushed the scaladoc/match-errors-fix branch from 4a8e1d0 to 63ee9c5 Compare May 24, 2021 08:30
@pikinier20 pikinier20 requested a review from romanowski May 24, 2021 08:31
@pikinier20 pikinier20 merged commit 5340d89 into master May 27, 2021
@pikinier20 pikinier20 deleted the scaladoc/match-errors-fix branch May 27, 2021 07:33
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scala.MatchError: LazyRef(...) (of class dotty.tools.dotc.core.Types$LazyRef)
4 participants