title: Kotlin: Method reference not working?
body: <p>It seems I'm unable to use a method reference of an object in Kotlin. This feature exists in Java.</p>
  
  <p>For example in Java if I was looping through a string to append each character to a writer:</p>
  
  <p><code>string.forEach(writer::append);</code></p>
  
  <p>But in Kotlin using the same syntax does not work because:</p>
  
  <p><a href="https://i.imgur.com/RQJy9GO.png" rel="noreferrer"><img src="https://i.imgur.com/RQJy9GO.png" alt="enter image description here"></a></p>