Issue 12741 - DMD accepts functions with contracts and no body

https://issues.dlang.org/show_bug.cgi?id=12741