Open DetachHead opened 2 years ago
Duplicate of #15300, which was recently closed, locked, and jettisoned into the void of space with some flavor of "working as intended".
Someone should probably remove the In Discussion
label from that issueβ¦
i've run into issues like this many times. i think it should be added to the documentation somewhere that explains the difference between types and interfaces. perhaps here?
Bug Report
π Search Terms
interface key type assign
π Version & Regression Information
5.0.0-dev.20221129
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
error when assigning
foo
which uses the interface but not when assigningbar
which uses the typeπ Expected behavior
either both of them should have an error or neither of them should