Skip to content

Commit 0f6202a

Browse files
inlineCall guards against NoDenotation case when checking owner
1 parent 8ec96f8 commit 0f6202a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object Inliner {
6666
* and body that replace it.
6767
*/
6868
def inlineCall(tree: Tree)(implicit ctx: Context): Tree = {
69-
if tree.symbol.owner.companionModule == defn.CompiletimeTestingPackageObject
69+
if tree.symbol.denot != SymDenotations.NoDenotation && tree.symbol.owner.companionModule == defn.CompiletimeTestingPackageObject
7070
if (tree.symbol == defn.CompiletimeTesting_typeChecks) return Intrinsics.typeChecks(tree)
7171
if (tree.symbol == defn.CompiletimeTesting_typeCheckErrors) return Intrinsics.typeCheckErrors(tree)
7272

0 commit comments

Comments
 (0)