class Test def foo(t as Test) pass def bar .foo(Test()) def main is shared Test().bar # pass a type directly y = Y(Object) y = Y(Test) CobraCore.noOp(y) class Y cue init(t as Type) base.init