# this program used to cause an internal exception class A def foo convert = do(text as String)=if(text.isBadName, text, text) # .error. Cannot find a definition for "isBadName" bar = convert('aoeu') # .error. Cannot infer type def main pass