Index: runtime/lib/mirrors.cc |
=================================================================== |
--- runtime/lib/mirrors.cc (revision 31056) |
+++ runtime/lib/mirrors.cc (working copy) |
@@ -1274,6 +1274,7 @@ |
const intptr_t num_inherited_args = args.Length() - num_params; |
for (intptr_t i = 0; i < num_params; i++) { |
arg_type ^= args.TypeAt(i + num_inherited_args); |
+ arg_type = arg_type.Canonicalize(); // Necessary for recursive types. |
type_mirror = CreateTypeMirror(arg_type); |
result.SetAt(i, type_mirror); |
} |