Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix [@@inline] with default parameters in flambda #880
Currently, functions with default parameters that are marked
let foo ?(bar=`Default) () = Array.make 5 bar [@@inline] let _ = foo ()
This is because the
Since it is a bug fix, I've made the PR against 4.04, but since it is a compilation error rather than a miscompilation it can safely be cherry-picked onto trunk instead if people prefer.