Skip to content
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

Fix order of initialization regression from #131 #135

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

lenguyenthanh
Copy link
Member

When initialize advancedOptions, the value of advancedKindProjector
is still null. That is caused because advancedOptions is placed
before advancedOptions. This is to fix that issue.

Also add a test to prevent this happen.

This is to prevent bugs like the one introduced in
typelevel#131, which causes
ScalacOptions.default contains a null value.
When initialize `advancedOptions`, the value of `advancedKindProjector`
is still `null`. That is caused because `advancedOptions` is placed
before `advancedOptions`. This is to fix that issue.
@lenguyenthanh lenguyenthanh changed the title Fix regression from https://github.com/typelevel/scalac-options/pull/131 Fix order of initialization regression from #131 Aug 16, 2024
Copy link
Contributor

@satorg satorg left a comment

Choose a reason for hiding this comment

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

Thanks!

@lenguyenthanh lenguyenthanh merged commit 4d19a7c into typelevel:main Aug 16, 2024
9 checks passed
@lenguyenthanh lenguyenthanh deleted the fix-tpolecat branch August 16, 2024 21:12
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.

2 participants