RosettaCodeData/Task/Constrained-genericity/Zkl/constrained-genericity-2.zkl

3 lines
115 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
class Apple(Eatable){} class Nuts(Eatable){} class Foo{}
FoodBox(Apple,"boogers",Nuts,Foo).contents.apply2("eat");