Open Haislich opened 1 month ago
Commenting
if c.value == NoneType:
return offset + a + b
Seems to fix. I have no clue why the formatter crashes though.
In the latest nightly the error is a bit better but still doesn't parse:
error: TODO: partial application of member methods is not yet supported
if c.value == NoneType:
^
mojo: error: failed to parse the provided Mojo source module
Please call c.value() to workaround this
Bug description
I was trying to understand how
Optional
works on mojo and got the formatter to crash.Steps to reproduce
The output on my local machine is the following:
System information