# .error. Argument 1 of method "bar" expects type int & Argument 1 of indexer expects type int class Foo def bar(t as T) pass get [t as T] as T return t class Test def main is shared f = Foo() f.bar('aoeu') assert f['aoeu']