class Foo def add(items as List) for item in items .add(item) def add(item as T) pass class Test def main is shared f = Foo() f.add(5) f.add([3, 2, 1])