class MethodOrderPostCallExprTest def main sb = StringBuilder() sb = StringBuilder(100) sb = StringBuilder('hello') sb = StringBuilder(1, 100) sb = StringBuilder('hello', 100) sb = StringBuilder('hello', 1, 2, 100) # these are okay sb = StringBuilder(.oneHundred) sb = StringBuilder(.hello) sb = StringBuilder(.one, .oneHundred) sb = StringBuilder(.hello, .oneHundred) sb = StringBuilder(.hello, .one, .two, .oneHundred) # underscore methods in arguments sb = StringBuilder(_oneHundred) sb = StringBuilder(_hello) sb = StringBuilder(_one, _oneHundred) sb = StringBuilder(_hello, _oneHundred) sb = StringBuilder(_hello, _one, _two, _oneHundred) assert sb.capacity == 100 assert sb.toString == 'el' def _one as int return 1 def _two as int return 2 def _oneHundred as int return 100 def _hello as String return 'hello' def one as int return 1 def two as int return 2 def oneHundred as int return 100 def hello as String return 'hello'