-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The child class should not be able to access the class field defined by the parent class via super #54054
Comments
I donβt think the type system can make this distinction of βitβs an instance property of |
fix is available |
Duplicate of #35314 |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
The child class should not be able to access the class field defined by the parent class via super
π Search Terms
class field super parent
π Version & Regression Information
Happens on 5.1.0-beta
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
No type error
π Expected behavior
Type error.
super
will look for the parent class, but the class field is always defined on the current instance.The text was updated successfully, but these errors were encountered: