File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
toolchain/check/testdata/impl/lookup Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,8 @@ impl {.aa: (), .bb: ()} as Z where .X = D {
29
29
fn ZZ () - > D { return () as D ; }
30
30
}
31
31
32
- // TODO: Are structs with different field orders different types too, for impl
33
- // lookup? Or should this impl be diagnosed as overlapping with the impl on
34
- // `{.a, .b}`? Raised in:
35
- // https://github.com/carbon-language/carbon-lang/issues/5413
32
+ // Structs with different field orders are different types too, for impl
33
+ // lookup. See https://github.com/carbon-language/carbon-lang/issues/5413.
36
34
impl {.b: (), .a: ()} as Z where .X = D {
37
35
fn ZZ () - > D { return () as D ; }
38
36
}
@@ -46,8 +44,5 @@ fn G() {
46
44
// names.
47
45
let c1 : C = F ({.a: (), .b: ()});
48
46
let d1 : D = F ({.aa: (), .bb: ()});
49
-
50
- // TODO: It is unclear if `F` should return `C` or `D`, since it has the same
51
- // field names but different order as the impl that would give us `C` here.
52
47
let d2 : D = F ({.b: (), .a: ()});
53
48
}
You can’t perform that action at this time.
0 commit comments