Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created May 27, 2012 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/2815880 to your computer and use it in GitHub Desktop.
Save jnthn/2815880 to your computer and use it in GitHub Desktop.
diff --git a/src/binder/container.c b/src/binder/container.c
index 1853ec8..70b297e 100644
--- a/src/binder/container.c
+++ b/src/binder/container.c
@@ -87,7 +87,7 @@ void Rakudo_cont_store(PARROT_INTERP, PMC *cont, PMC *value,
if (!PMC_IS_NULL(scalar->descriptor)) {
Rakudo_ContainerDescriptor *desc = ((Rakudo_ContainerDescriptor *)PMC_data(scalar->descriptor));
ok = STABLE(value_decont)->type_check(interp, value_decont, desc->of);
- if (!ok) {
+ if (!ok && desc->of != Rakudo_types_mu_get()) {
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Type check failed in assignment to '%S'; expected '%S' but got '%S'",
desc->name, typename(interp, desc->of), typename(interp, value_decont));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment