Add missing case to unify. This gets hello world to codegen.
This commit is contained in:
parent
7446af747d
commit
bd56dd9f2a
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue