Warn when optional is used on a non-out parameter
@gregier
Submitted by Garrett Regier Link to original bug (#746232)
Description
When the optional annotation is specified for non-out parameter a warning is not emitted and the annotation is written to the .gir.
In the case of specifying it on return values it is completely ignored, a warning is not emitted and it is not written to the .gir.