title: Why passing an inline list into println method isn't working in Groovy? (like 'println [1, 2, 3]')
body: <p>Please explain why the following</p>
  
  <pre><code>println([1, 2, 3])
  </code></pre>
  
  <p>works in Groovy. And why the following </p>
  
  <pre><code>println [1, 2, 3]
  </code></pre>
  
  <p>fails with</p>
  
  <pre><code>groovy.lang.MissingPropertyException: No such property: println for class: main
      at main.run(main.groovy:2)
  </code></pre>