You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am pretty sure this is a compiler bug. It happens in the standalone c# version, but it does not happen with the Unity version.
staticclass Test
{// this creates an empty filestaticDataFilefile=new DataFile("test"),defaultFileText:"# this is a test");staticvoidMain(){// this creates a file with the text "# this is a test"varfile=new DataFile("test2", defaultFileText:"# this is a test");}}
I have found through testing that the defaultFileText variable is being set to null before it reaches the constructor method.
The text was updated successfully, but these errors were encountered:
I am pretty sure this is a compiler bug. It happens in the standalone c# version, but it does not happen with the Unity version.
I have found through testing that the
defaultFileText
variable is being set tonull
before it reaches the constructor method.The text was updated successfully, but these errors were encountered: