Skip to content

Commit bd56dd9

Browse files
author
Rafael Avila de Espindola
committed
Add missing case to unify. This gets hello world to codegen.
1 parent 7446af7 commit bd56dd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/middle/ty.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ fn unify(@ty.t expected, @ty.t actual, &unify_handler handler)
968968
case (ty.ty_char) { ret struct_cmp(expected, actual); }
969969
case (ty.ty_str) { ret struct_cmp(expected, actual); }
970970
case (ty.ty_type) { ret struct_cmp(expected, actual); }
971+
case (ty.ty_native) { ret struct_cmp(expected, actual); }
971972

972973
case (ty.ty_tag(?expected_id)) {
973974
alt (actual.struct) {

0 commit comments

Comments
 (0)