Skip to content

Commit

Permalink
Restore signature of ChangeOwnerTraverser.change
Browse files Browse the repository at this point in the history
The result type changed from Unit to Any in PR 10389.

This broke the scalatest assert macro, which uses API from
scala.reflect.internal. It shouldn't, binary compatibility
is not checked in the internal package. Hopefully this commit
fixes it anyway.
  • Loading branch information
lrytz committed Jul 14, 2023
1 parent dd33bd3 commit d976c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect/scala/reflect/internal/Trees.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ trait Trees extends api.Trees {
protected val changedSymbols = mutable.Set.empty[Symbol]
protected val treeTypes = mutable.Set.empty[Type]

def change(sym: Symbol) = {
def change(sym: Symbol): Unit = {
if (sym != NoSymbol && sym.owner == oldowner) {
sym.owner = newowner
changedSymbols += sym
Expand Down

0 comments on commit d976c25

Please sign in to comment.