1.1 --- a/templates/ops.c Thu Jan 19 19:23:39 2017 +0100
1.2 +++ b/templates/ops.c Thu Jan 19 23:33:10 2017 +0100
1.3 @@ -200,10 +200,12 @@
1.4 attribute. */
1.5
1.6 if (__is_instance(context))
1.7 + {
1.8 if (__test_common_instance(context, __TYPEPOS(attr.context), __TYPECODE(attr.context)))
1.9 return __replace_context(context, attr);
1.10 else
1.11 __raise_type_error();
1.12 + }
1.13
1.14 /* Test for access to a type class attribute using a type instance. */
1.15
1.16 @@ -232,7 +234,7 @@
1.17
1.18 __attr __update_context(__ref context, __attr attr)
1.19 {
1.20 - __attr out = {context, .fn=attr.fn};
1.21 + __attr out = {.context=context, .fn=attr.fn};
1.22 return out;
1.23 }
1.24