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
When a class is set final, the compute properties or the functions are not working anymore.
This can be tested with any samples of the README.
If the behaviour is expected, maybe adding this to the README could help troubleshooting the issue.
The text was updated successfully, but these errors were encountered:
This behavior is known but undocumented. the reason behind it is that we read the symbols on the vtable to get a list of methods and their signatures. Vtables are there to dispatch method calls to the right implementation of the actual class. If a class is final, Swift will optimize to us static method dispatching and won't create the table at all. Methods in extensions are also omitted for the same reason, since you can't override them. I believe a method will also be omitted if the method is final.
This definitely needs to be documented, thanks for raising this issue!
When a class is set
final
, the compute properties or the functions are not working anymore.This can be tested with any samples of the README.
If the behaviour is expected, maybe adding this to the README could help troubleshooting the issue.
The text was updated successfully, but these errors were encountered: