Closed
Description
Should compile
def func[T <: (+) & (*)](x: T, y: T) -> T = x + x * y
to the equivalent of
def func[T <: ProtocolIntersection[SupportsAdd, SupportsMul]](x: T, y: T) -> T = x + x * y
where SupportsAdd
is some special Coconut typing.Protocol
for supporting __add__
and ProtocolIntersection
is from here.