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
Describe the bug
It's not possible to implement a generic interface (or class), or any non-generic interface which contains generic members.
To Reproduce
PublicInterfaceSomeInterface(OfT)SubSomeSub(ValueAsT)' Unrecognised datatype symbol 'T'EndInterfacePublicClassSet(OfT)ImplementsSomeInterface(OfT)' Missing implementation of member Sub SomeSub(ByRef Value as {unresolved})PublicSubSomeInterface_SomeSub(ValueAsT)Debug.AssertFalseEndSubEndClass
Expected behavior
Should be able to implement generic interfaces / members
Additional context
I've tried a few different ways to phrase this, but it seems like Implements only works on non generic types, and only if they don't contain any generic members.
Desktop (please complete the following information):
OS: Windows 10 (2004)
twinBASIC compiler version; v0.13.83
The text was updated successfully, but these errors were encountered:
Unfortunately there isn't a quick-fix for this one. In fact, even attempting to use a non-generic interface with Implements inside a generic class is problematic at the moment (unless that interface is defined in a package or type library).
It needs some thought on how best to fix this, so I'll get back to you on it, but be warned it might be a little while until I get to it.
Contrary to my earlier remarks, I have now solved this. However, I need to write more tests for it, so bear with me and it should be ready for tomorrow.
Describe the bug
It's not possible to implement a generic interface (or class), or any non-generic interface which contains generic members.
To Reproduce
Expected behavior
Should be able to implement generic interfaces / members
Additional context
I've tried a few different ways to phrase this, but it seems like
Implements
only works on non generic types, and only if they don't contain any generic members.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: