Skip to content

Commit abaf47e

Browse files
Merge pull request #8246 from dotty-staging/add-missing-assertion
Add missing assertion for macros
2 parents f4f35e1 + 9895613 commit abaf47e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ trait QuotesAndSplices {
8181
if (c.owner eq c.outer.owner) markAsMacro(c.outer)
8282
else if (c.owner.isInlineMethod) c.owner.setFlag(Macro)
8383
else if (!c.outer.owner.is(Package)) markAsMacro(c.outer)
84+
else assert(false) // Did not find inline def to mark as macro
8485
markAsMacro(ctx)
8586
}
8687
typedApply(untpd.Apply(untpd.ref(defn.InternalQuoted_exprSplice.termRef), tree.expr), pt)(spliceContext).withSpan(tree.span)

0 commit comments

Comments
 (0)