class X shared # Declare a generic method with no args def create as T sysType = T.getType x = sysType() return x to T class T def main is shared # Invoke a generic method with no args x as int = X.create # Type inference y = X.create # Validate type inference with back and forth assignment to x y = x x = y CobraCore.noOp(x, y)