This works also,

```
import std.stdio:writeln;

int [] fun(){
        int[3]s=[1,2,3];
        int[] r=s;
        return r;
}       

void main(){
        writeln(fun()[0]);
}
```

Reply via email to