Closed elliotchance closed 6 years ago
Untyped nils need to be cast, like:
MyFunction(nil).Returns("foo") // will not work MyFunction((MyStruct*)(nil)).Returns("foo") // works
Internally it should determine and cast the correct type of nil so that the caller doesn't have to worry about this.
This should be solved now, apart #11 (this one also handles nils in return statements)
@elliotchance this this one is solved now 🎆
Thank you very much @m1ome !
Untyped nils need to be cast, like:
Internally it should determine and cast the correct type of nil so that the caller doesn't have to worry about this.