Open johannaschwarzcheck24 opened 2 months ago
Hmm, we had added context sensitivity via contract support to track such error propagation and not report a false positive. Perhaps some corner case that we missed. @yuxincs, can you take a look?
@johannaschwarzcheck24, thanks for reporting!
A minimal example:
The wrap function returns nil if the error passed to it is nil. The test function will only call wrap and pass err if err is not nil.
nilaway reports a potential nil panic: