title: Missing branch with when and enum when running Jacoco coverage
body: <p>I using Jacoco 0.8.6 and I have an enum with 3 values.
  I have this <code>when</code> shown on the image below and I have a test for each branch but Jacoco is still saying that I am missing a branch, also my <code>var</code> is non-null. What is wrong?
  <a href="https://i.stack.imgur.com/UqLme.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UqLme.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/GfKBG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GfKBG.png" alt="enter image description here" /></a></p>