[mcsta] NullReferenceException in ArrayType.cs
In file Expressions/Types/ArrayType.cs
the field private readonly ILocation location
is never assigned to and will always have its default value null
.
Running mcsta
on the following minimal example throws an exception in line 26 of that file.
int[] arr = [42];
tau
This bug seems to be introduced in 0cbfb7734fd73dd3d8f1ae9ac4c5dc92819279c1 and may can be fixed by simply adding this.location = location;
in the constructor.
Edited by Arnd Hartmanns