Midje icon indicating copy to clipboard operation
Midje copied to clipboard

Midje sometimes drops type-hints in let inside facts?

Open timmc opened this issue 10 years ago • 0 comments

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.

timmc avatar Sep 10 '14 16:09 timmc