ceylon/ceylon-js — Issue #50: Initialization of shared non-variable attribute
Author: ikasiuk
Created: 2012-02-21 19:44:18+00:00
State: open
Labels: bug

This currently doesn't work in capture style:

```
class A() {
shared String z;
z = "ok";
}
```

Here is the relevant part of the generated code:

```
var $z;
function getZ(){
return $z;
}
$$a.getZ=getZ;
$$a.$z=$$$cl15.String("ok",2)
```

The value has to be assigned to `$z`, not `$$a.$z`.