fun f() { val x = new StringBuilder(); g(x); return x.toString(); } fun g(sb: StringBuilder): Unit { sb.append("foo"); }