Check for structural equality rather than structural-and-cname equality.
This commit is contained in:
parent
6fcf55347e
commit
1090c5e69c
@ -463,7 +463,7 @@ fn unify(&@crate_ctxt ccx, @ty expected, @ty actual) -> unify_result {
|
||||
|
||||
// Simple structural type comparison.
|
||||
fn struct_cmp(@ty expected, @ty actual) -> unify_result {
|
||||
if (expected == actual) {
|
||||
if (expected.struct == actual.struct) {
|
||||
ret ures_ok(expected);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user