Error codes · Declarations and their clauses

PW0331

optimistic_target_mismatch

The program must hold to this: an optimistic transition must produce the value type of the resource it targets.

Reading the diagnostic

pw check prints the code in brackets, [PW0331], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.