You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TomasMikula
changed the title
MatchError: NoPrefix() when trying to print code of the NoPrefix() type
MatchError: NoPrefix() when printing code of the NoPrefix() type
Mar 8, 2024
I dunno, making a method take a Type and return a string, then typecheck and blow up at runtime because it's the "wrong kind of Type" also sounds like a good way to hide bugs. If we, hypothetically, end up with some library or user code that decomposes a type and constructs a string incorrectly, such as passing a NoPrefix prefix, then they'll realise if they ever care to look at the result, I would think.
Compiler version
3.3.3
3.4.0
3.4.1-RC1
3.4.2-RC1-bin-20240308-18645ee-NIGHTLY
Minimized code
Macro definitions
Macro use
Output
Expectation
Printing
NoPrefix
should either"<no-prefix>"
); orNoPrefix
.The text was updated successfully, but these errors were encountered: