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
My knowledge on the way interfaces are implemented in the runtime is probably the shakiest out of all ooc features.
I will be looking into it in more depth and fixing as many bugs as possible and possibly implementing this (although this would probably be a part of the much needed typearg system rewrite).
alexnask
changed the title
Generic (interface) constraints
[Feature] Generic (interface) constraints
May 10, 2016
I vaguely remember this exact issue being discussed in some ooc-lang/rock issue but I am basically talking about this kind of stuff:
Basically, the above would be equivalent to:
But make sure that a, b are of the same type (or have a common root type).
The text was updated successfully, but these errors were encountered: