Skip to content

Commit

Permalink
[jvm] Skip type check if expected type is Mu
Browse files Browse the repository at this point in the history
That's what we do in 'type_check_store' on MoarVM as well.
  • Loading branch information
usev6 committed Nov 26, 2017
1 parent b285aaf commit fbf7bec
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -60,7 +60,7 @@ private void checkStore(ThreadContext tc, SixModelObject cont, SixModelObject va
}
SixModelObject of = desc.get_attribute_boxed(tc,
gcx.ContainerDescriptor, "$!of", RakOps.HINT_CD_OF);
long ok = Ops.istype(value, of, tc);
long ok = of == gcx.Mu ? 1 : Ops.istype(value, of, tc);
if (ok == 0) {
desc.get_attribute_native(tc, gcx.ContainerDescriptor, "$!name", RakOps.HINT_CD_NAME);
String name = tc.native_s;
Expand Down

0 comments on commit fbf7bec

Please sign in to comment.