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