Join Slack
Powered by
is there a way to do multiple class generic constr...
# getting-started
m
Maciek
04/22/2020, 4:52 PM
is there a way to do multiple class generic constraints and interface delegation? Because of delegation it doesn't compile 🤔
Untitled
s
Shawn
04/22/2020, 4:55 PM
oh wow, this is apparently whitespace sensitive
Shawn
04/22/2020, 4:55 PM
Copy code
class Foo2<T>(a: A) : A by a where T : B
m
Maciek
04/22/2020, 4:56 PM
oooh 😮
Maciek
04/22/2020, 4:56 PM
thanks!
👍 1
s
Shawn
04/22/2020, 4:57 PM
thanks for asking, I learned something today 😂
😄 1
m
Maciek
04/22/2020, 4:58 PM
hah, yea, it seems we're at the edge of the syntax
4
Views
Open in Slack
Previous
Next