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
The use of Self in non-init context might be harmful as sometimes it indicates that the function was meant to be marked with #[init]. It might make sense to gradually prohibit this pattern, e.g. give a deprecation warning in 4.2 and give a compilation error in 5.0.
Once the deprecation warning is there, should we create a 5.0 milestone and attach this issue to it so that we don't forget to switch to the compilation error when it's time?
The use of
Self
in non-init context might be harmful as sometimes it indicates that the function was meant to be marked with#[init]
. It might make sense to gradually prohibit this pattern, e.g. give a deprecation warning in 4.2 and give a compilation error in 5.0.Originally pointed out in #972 (comment).
The text was updated successfully, but these errors were encountered: