var-init |[ {a, b} ]|

Reported by Eric Tanter

Submitted on 28 June 2006 at 23:00

On 28 June 2006 at 23:06 Jira commented:

JFR-51, martin:

===============================================
module foo
imports libstratego-lib Java-15
strategies

main =
!|[ new int[]{ ~* [1,2] } ]|

foo =
map(!var-init |[ {a, b} ]|)
===============================================

$ strc -i foo.str $(strcflags java-front) -la stratego-lib
$ ./foo | pp-java
new int[]{{a, b}, {a, b}}

Log in to post comments