Skip to content

Commit 3919421

Browse files
committed
Revert "Don't count vals as macro dependencies"
This reverts commit 8cea720.
1 parent c09ba9b commit 3919421

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,11 +1269,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
12691269
override def apply(syms: List[Symbol], tree: tpd.Tree)(implicit ctx: Context): List[Symbol] =
12701270
if (level != -1) foldOver(syms, tree)
12711271
else tree match {
1272-
case tree: RefTree
1273-
if level == -1
1274-
&& tree.symbol.isDefinedInCurrentRun
1275-
&& tree.symbol.isRealMethod
1276-
&& !tree.symbol.isLocal =>
1272+
case tree: RefTree if level == -1 && tree.symbol.isDefinedInCurrentRun && !tree.symbol.isLocal =>
12771273
foldOver(tree.symbol :: syms, tree)
12781274
case Quoted(body) =>
12791275
level += 1

0 commit comments

Comments
 (0)