class Test def makeDict1(k as Object, v as Object) as Dictionary d = {k: v} return d def makeDict2(k as String, v as Test) as Dictionary d = {k: v} return d shared def main t = Test() t.makeDict1('true', true) t.makeDict2('test', Test())