IWScalaModule: only add -Xkind-projector for Scala versions that support it #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-project-support#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
IWScalaModuleunconditionally adds the-Xkind-projectorcompiler flag. This flag is only available in newer Scala 3 versions (3.5+). When using Scala 3.3.x LTS (scala3LTSVersion), the compiler emits:This warning pollutes build output and would trigger CI warning checks.
Suggested Fix
Conditionally add
-Xkind-projectoronly when the Scala version supports it (>= 3.5). Something like:Observed in
mill-iw-support0.1.1-SNAPSHOTscala3LTSVersion