G
Guest
bool b = true;
if(!b) goto end;
string str="str";
end:
Console.Write(str);
compiler throw error message 'unassign variable "str"'.
this error explain compiler was find variable define,
but don't execute assing sentence.
Why?Is't a bug?
if(!b) goto end;
string str="str";
end:
Console.Write(str);
compiler throw error message 'unassign variable "str"'.
this error explain compiler was find variable define,
but don't execute assing sentence.
Why?Is't a bug?