roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Use warnings for escape analysis in unsafe context

Open jcouv opened this issue 2 years ago • 2 comments

Relates to https://github.com/dotnet/csharplang/issues/6476

jcouv avatar Sep 21 '22 16:09 jcouv

An EE test is still failing.


In reply to: 1254243014

RikkiGibson avatar Sep 21 '22 21:09 RikkiGibson

    public void ReadOnlyIndexer_RefLikeStructParameter_02(LanguageVersion languageVersion)

Consider testing this without unsafe as well since it looks like the original test didn't depend on unsafe code. (I realize the tests above also don't depend on unsafe code, but this is the one test that previously reported ERR_CallArgMixing as well.)


Refers to: src/Compilers/CSharp/Test/Semantic/Semantics/RefEscapingTests.cs:3268 in 0e782a2. [](commit_id = 0e782a228964679516b3c257cde8c7bb0c73049a, deletion_comment = False)

cston avatar Sep 23 '22 00:09 cston