Skip to content

scanner: Add warning for closure annotation

Emmanuele Bassi requested to merge ebassi/warn-closure-callback into main

The closure annotation only takes an argument when used for parameters of a function. When used on the parameters of a callback type, it's a unary annotation and takes no arguments.

Make sure we warn whenever the closure argument on a callback type is wrongly annotated.

Fixes: #449 (closed), #450 (closed)

Merge request reports

Loading