c3c
c3c copied to clipboard
Target object of method is not null checked
Currently this works, but it should have some runtime check to see if the target is null.
struct MyStructThing {
int a;
}
fn void MyStructThing.hello(&self) {
io::printn("Hello");
}
fn void main()
{
MyStructThing *mst = null;
mst.hello(); // Hello
}
This should now work properly.
This now generates a proper null pointer error.