<div dir="ltr"><div>Hi</div><div><br></div>When I click 'add shred' with the following code:<div><div><br></div><div>public class A</div><div>{</div><div>    static string a;</div><div>}</div></div><div><br></div><div>
it throws following message:</div><div><br></div><div><div>[*unnamed1]:line(3): cannot declare static non-primitive objects (yet)...</div><div>[*unnamed1]:line(3): ...(hint: declare as ref (@) & initialize outside for now)</div>
</div><div><br></div><div>as if string is non-primitive.</div><div><br></div><div>And when I follow the suggestion and use a ref</div><div><br></div><div><div>public class A</div><div>{</div><div>    static string @ a;</div>
<div>}</div></div><div><br></div><div>it throws the following message:</div><div><div><br></div><div>[*unnamed1]:line(3): cannot declare references (@) of primitive type 'string'...</div><div>[*unnamed1]:line(3): ...(primitive types: 'int', 'float', 'time', 'dur')</div>
</div><div><br></div><div>as if string is a primitive type.</div><div><br></div><div>Is it a code limitation or am I doing something wrong?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Kiran</div></div>