What to do with impl Interface1 as Interface2
?
#4853
Labels
leads question
A question for the leads team
impl Interface1 as Interface2
?
#4853
Summary of issue:
Given this code:
The
impl Goat as Eats
looks a lot like a blanket impl ofEats
forGoat
types, but it's not. It's an impl on theGoat
interface itself.@zygoloid expressed that maybe this should be a warning. If it's a warning, for many projects it will become an error, essentially banning it from the language. Is this useful to keep? Should it be diagnosed in some way?
Details:
No response
Any other information that you want to share?
No response
The text was updated successfully, but these errors were encountered: