Replies: 3 comments
-
When we cannot place any other method in a scope, we remove the whole block as a crude last resort. Of course that doesn't compile, so instead of actually removing we replace it with return default; See: #2296 We are still debating how we could best show this to the user, since the intent is not to add the return default, the intent is to remove the block. Currently we don't show this at all, and we agree that this is confusing. |
Beta Was this translation helpful? Give feedback.
-
...and in this case, it turns out that // Stryker disable once Block: results in an equivalent mutation
public ValueTask ServeNotModifiedAsync(ETagCacheContext context, CancellationToken cancellationToken)
{
return ValueTask.CompletedTask;
} |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hi.
I have question.
I have methods like:
Stryker tells me "👽 Block removal mutation Survived".
but I don't understand why. Because if I remove the
return
and leave an empty block, it's compilation error.Can you advise me what I'm doing wrong?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions