Fleshgrinder
02/14/2020, 2:35 PMwhen expression to be exhaustive and it is exhaustive but the compiler cannot know, current example is java.nio.ByteOrder which has exactly two instances but is not defined as an enum.Ruckus
02/14/2020, 5:10 PMerror()?Fleshgrinder
02/14/2020, 11:54 PMFleshgrinder
02/14/2020, 11:54 PMilya.gorbunov
02/18/2020, 4:38 PMBecause you always need to come up with a message.Why is that a bad thing? The message could include some useful details of why that unreachable code was reached if the original assumption became false. For example it can include the actual value of argument of
when that was expected to be exhaustive.Fleshgrinder
02/18/2020, 4:42 PMunreachable macro offers an optional message argument. We could add that too.Fleshgrinder
02/18/2020, 4:42 PM