Error codes · Scopes, tasks and resources
PW2002
task_detached
The program must hold to this: an ordinary task cannot be detached from its scope.
Reading the diagnostic
pw check prints the code in brackets, [PW2002], 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.