Skip to content

Commit

Permalink
Throw an exception for unexpected wildcard reads.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Jul 21, 2024
1 parent c83cef2 commit 190f1ab
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,14 @@ public void visitPropertyRead(AstPropertyRead instruction) {
return v;
}
});
}
} else
throw new IllegalArgumentException(
"Not expecting the definition: "
+ def
+ " of the object reference of: "
+ instruction
+ " to be: "
+ def.getClass());
}

// check if we are reading from an module initialization script.
Expand Down

0 comments on commit 190f1ab

Please sign in to comment.