Testing Concurrency's Implicit Cancellation

There was a somewhat recent thread which revealed that the initial implementation of the instance variable task.isCancelled always returned the value of the type variable Task.isCancelled. You could be experiencing that bug.