-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Regression test for extension nullification, nowarn for different opacities #21191
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
Regression test for extension nullification, nowarn for different opacities #21191
Conversation
10f9c36
to
67a2534
Compare
@@ -0,0 +1,23 @@ | |||
|
|||
//> using options -Werror |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-Werror
isn't needed here, warn
tests will fail if an error is reported in an unspecified location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a way to say "expect no warnings" without scanning the source visually or grepping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that sounds like a good practice actually. 😅
…cities (scala#21191) Fixes scala#21190 ~Adjust~ test that params must not be of different opacity ~opaque~. ~Other aliases are permitted, but could check if they are effectively final. String alias can't be overridden.~ The tweak was scala#22268 and the ticket was a duplicate. In the meantime, it also doesn't warn for any override, so the previous concern about aliases doesn't apply. [Cherry-picked ee62b32]
Fixes #21190
Adjusttest that params must not be of different opacityopaque.Other aliases are permitted, but could check if they are effectively final. String alias can't be overridden.The tweak was #22268 and the ticket was a duplicate. In the meantime, it also doesn't warn for any override, so the previous concern about aliases doesn't apply.