title: kotlin Overload resolution ambiguity. All these functions match
body: <p><strong>kotlin/jvm jdk8 not support code</strong></p>
  
  <pre><code>var buffer = StringBuffer();
  var arr = arrayOf("1","2","3","4");
  arr.forEach {buffer::append}
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SO6IO.png" rel="nofollow noreferrer">error info</a></p>
  
  <p><strong>java jdk8 supported code,</strong> </p>
  
  <pre><code>String[] b = new String[]{"c", "b"};
  Arrays.stream(b).forEach(buffer::append);
  </code></pre>