You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interface Z {
let X:! type;
}
impl {.a: (), .b: ()} as Z where .X = i32 {}
impl {.b: (), .a: ()} as Z where .X = i64 {}
fn F() {
let x: auto = 1 as ({.a: (), .b: ()} as Z).X;
let y: auto = 1 as ({.b: (), .a: ()} as Z).X;
}
Is this an error because the two impls overlap? If not, is the type of x i32 and the type of y i64?
Details:
No response
Any other information that you want to share?
No response
The text was updated successfully, but these errors were encountered:
Summary of issue:
Is this an error because the two impls overlap? If not, is the type of x
i32
and the type of yi64
?Details:
No response
Any other information that you want to share?
No response
The text was updated successfully, but these errors were encountered: