Add missing case to unify. This gets hello world to codegen.

This commit is contained in:
Rafael Avila de Espindola 2011-02-14 11:22:10 -05:00
parent 7446af747d
commit bd56dd9f2a

View file

@ -968,6 +968,7 @@ fn unify(@ty.t expected, @ty.t actual, &unify_handler handler)
case (ty.ty_char) { ret struct_cmp(expected, actual); } case (ty.ty_char) { ret struct_cmp(expected, actual); }
case (ty.ty_str) { ret struct_cmp(expected, actual); } case (ty.ty_str) { ret struct_cmp(expected, actual); }
case (ty.ty_type) { ret struct_cmp(expected, actual); } case (ty.ty_type) { ret struct_cmp(expected, actual); }
case (ty.ty_native) { ret struct_cmp(expected, actual); }
case (ty.ty_tag(?expected_id)) { case (ty.ty_tag(?expected_id)) {
alt (actual.struct) { alt (actual.struct) {