Skip to content

Commit

Permalink
tweak generated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Feb 22, 2024
1 parent e46b0c9 commit 638cc45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions unroll/plugin/src-2/UnrollPhaseScala2.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class UnrollPhaseScala2(val global: Global) extends PluginComponent with TypingT

import global._

val runsAfter = List("typer")
val runsAfter = List("pickler")

override val runsBefore = List("patmat")
override val runsBefore = List("refchecks")

val phaseName = "unroll"

Expand Down
5 changes: 4 additions & 1 deletion unroll/plugin/src-3/UnrollPhaseScala3.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ class UnrollPhaseScala3() extends PluginPhase {
val forwarderDefSymbol = Symbols.newSymbol(
defdef.symbol.owner,
defdef.name,
defdef.symbol.flags &~ HasDefaultParams &~ (if (nextParamIndex == -1) Flags.EmptyFlags else Deferred),
defdef.symbol.flags &~
HasDefaultParams &~
(if (nextParamIndex == -1) Flags.EmptyFlags else Deferred) |
Invisible,
truncatedMethodType
)

Expand Down

0 comments on commit 638cc45

Please sign in to comment.