Skip to content

Commit fa3d25f

Browse files
committed
Invoke accepts_type on correct meta-object.
1 parent f40a989 commit fa3d25f

File tree

1 file changed

+1
-1
lines changed
  • src/vm/jvm/runtime/org/perl6/nqp/runtime

1 file changed

+1
-1
lines changed

src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ public static long istype(SixModelObject obj, SixModelObject type, ThreadContext
18911891
if (atMeth == null)
18921892
throw ExceptionHandling.dieInternal(tc,
18931893
"Expected accepts_type method, but none found in meta-object");
1894-
invokeDirect(tc, atMeth, typeCheckCallSite, new Object[] { obj.st.HOW, type, obj });
1894+
invokeDirect(tc, atMeth, typeCheckCallSite, new Object[] { type.st.HOW, type, obj });
18951895
return istrue(result_o(tc.curFrame), tc);
18961896
}
18971897

0 commit comments

Comments
 (0)