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
Currently, a structural interface via @Structural requires a cast if not nominally implemented.
MyIfacex = (MyIface) newMyClass(); // :( go away cast
If MyClass satisfies MyIface structurally but not nominally, it still requires a cast. This was always a stopgap solution for true structural typing. Let's finally include structural type checking into the compiler and IDE plugin.
In addition to satisfying by method, type checking should also support the other ways of satisfying a structural interface, such as by field, by proxy, etc. See criteria in documentation.
The text was updated successfully, but these errors were encountered:
- integrate automatic structural type checking into IJ plugin
plus
- fix a "slow operation" exception
- fix actions wrt update thread
- update description in plugin.xml to include delegation and sql
- bump version
Currently, a structural interface via
@Structural
requires a cast if not nominally implemented.If
MyClass
satisfiesMyIface
structurally but not nominally, it still requires a cast. This was always a stopgap solution for true structural typing. Let's finally include structural type checking into the compiler and IDE plugin.where:
Generics must be handled as well.
Update:
In addition to satisfying by method, type checking should also support the other ways of satisfying a structural interface, such as by field, by proxy, etc. See criteria in documentation.
The text was updated successfully, but these errors were encountered: