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 issue arises when attempting to set the foo field in the class Child, which is a (non private) field in the superclass Parent. Due to property inference, only a getter is available for foo, causing the assignment to result in the error: Cannot assign read-only property 'foo'.
If the getFoo() method is omitted from the Parent class, the issue does not occur. Removing manifold-props also resolves the problem.
Desktop (please complete the following information):
OS Type & Version: Windows 10 22H2
Java/JDK version: openjdk 23.0.1
IDE version (IntelliJ IDEA or Android Studio): IntelliJ IDEA 2024.3
EotT123
changed the title
Bug when using property interference and extending classes
Bug when using property inference and extending classes
Dec 6, 2024
Describe the bug
When using
manifold-props
, the following code of produces an error:The issue arises when attempting to set the
foo
field in the classChild
, which is a (non private) field in the superclassParent
. Due to property inference, only a getter is available forfoo
, causing the assignment to result in the error:Cannot assign read-only property 'foo'
.If the
getFoo()
method is omitted from theParent
class, the issue does not occur. Removingmanifold-props
also resolves the problem.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: