Created
May 27, 2012 20:57
-
-
Save jnthn/2815880 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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