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
For some reason a tuple of subclasses is not a tuple of superclasses. But a function taking a tuple of superclasses is a function taking a tuple of subclasses. Something is wrong or at least weird here =)
classB {}
classC: B {}
varf1: ((B, B)) -> () = {pin }
varf2: ((C, C)) -> () = f1//note: compiler allows this assignmentvarv: (C, C) = (C(), C())
//at this point f1 & f2 are effectively the same instance//but compiler doesn't allow to invoke f1 with v argf1(v) //Cannot express tuple conversion '(C, C)' to '(B, B)'f2(v)
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: ffe8d2a8000f1d1fc5a93d34e61b3f07
duplicates:
Issue Description:
For some reason a tuple of subclasses is not a tuple of superclasses. But a function taking a tuple of superclasses is a function taking a tuple of subclasses. Something is wrong or at least weird here =)
The text was updated successfully, but these errors were encountered: