class Test def main is shared Test().run def run assert .foo(5)==5 # no big deal assert .foo('td')=='' # what we're looking for. different references, but contents are equal def foo(tag as Object) as Object if tag inherits String if not tag.startsWith('<') tag = '' # former bug: only assigned to internal helper var return tag