Verse Case Statement Error

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

This code fails with D:/Users/Scott/UEFN/VDSG/Plugins/VDSG/Content/VerseCommander/verse_commander_character.verse(329,21, 329,40) : Script error 3616: Case statement has unreachable cases.

case(NavResult):
navigation_result.Reached => Print(“Successful Navigation”)
navigation_result.PartiallyReached => Print(“PartiallyReached”)
navigation_result.Interrupted => Print(“Interrupted”)
navigation_result.Blocked => Print(“Blocked”)
navigation_result.Unreachable => Print(“Unreachable”)
_ => Print(“Dunno”)

Steps to Reproduce

Write code and attempt compile

Expected Result

Compiles and runs

Observed Result

This code fails with D:/Users/Scott/UEFN/VDSG/Plugins/VDSG/Content/VerseCommander/verse_commander_character.verse(329,21, 329,40) : Script error 3616: Case statement has unreachable cases.

Unless I comment the line “navigation_result.Blocked” out.

Platform(s)

PC

Additional Notes

navigation_result.Blocked is included in the enum