# the generic method is declared inside a generic class class A def foo(i as int) as U? where U must be class return nil def bar(i as int) as List return List() def baz(t as List) pass class Program def main a = A() CobraCore.noOp(a)