roslyn
roslyn copied to clipboard
Use warnings for escape analysis in unsafe context
Relates to https://github.com/dotnet/csharplang/issues/6476
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)