-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use new rather than apply in Scala 3 (#176)
Scala 2 macros expand to e.g. `new sourcecode.Line(2)`. To maintain compatibility with other tools such as Mill's CodeSig analyzer, we should directly call the constructor, rather than the companion's `apply` method e.g. `sourcecode.Line.apply(2)`
- Loading branch information
1 parent
9b14bfe
commit 1dae28d
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters