Midje
Midje copied to clipboard
Midje sometimes drops type-hints in let inside facts?
It appears that a specific configuration of facts
, let
and argument type hints causes hints to be ignored in Midje. Here I have 5 different variations on a function, and only in one case does the type hint fail to take effect:
https://github.com/timmc/sscce-midje-hinting/blob/master/test/t_hint.clj
Macro-expanding the facts form in the REPL doesn't show the hint being dropped, so this might have to do with macroexpansion happening in the lein-midje environment.