I’m not sure about this, this was an intentional exception, because you still have a single paragraph with a line break in this case, and adding inline code mark should be possible in this situation.
We can even consider a change in this behavior, but it’s not really a bug. /cc @lindsey
OK, sorry, I hadn’t noticed this. I think it makes sense to keep both consistent, indeed.