Description
I can run this code,
def list = ([[1]] as List<List<Integer>>)
println list
but cannot run this code.
def list = [[1]] as List<List<Integer>>
println list
Error message:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
C:\Users\Yu\Desktop\test.groovy: 2: expecting EOF, found 'println' @ line 2, column 1.
println list
^