Details
-
Story
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
-
Phoenix
-
3
-
Phoenix 2022-05-11, Phoenix 2022-05-25
-
Bug Fix
-
-
Needs Assessment
Description
Usage of a deferred function will fail compilation when used as typed parameter value when requiring a class. The compiler will error on a mismatch of the parameter type and the yet-to-be-resolved deferred function.
Functions can have their return type specified, which can then be tested to match the parameter type. Many functions do not specify their return_type though, so in that scenario the compiler should clearly warn that the compiler cannot guarantee the correctness of the return value of the function.