Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-468655: C# 7.2 False error: Cannot make 'ref' parameter of type

$
0
0
Reporter Andrew Zhilin (andrew_zhilin@yahoo.com) Andrew Zhilin (andrew_zhilin@yahoo.com)
Created Mar 12, 2018 11:56:24 PM
Updated Apr 9, 2018 3:34:28 PM
Subsystem Code Analysis - C#
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion All Versions
// C# 7.2
public ref struct A {}
public ref struct B
{
  public void SomeMethod(ref A a){}
}

This code compiles without any errors, but Resharper reports:

Class1.cs:6 Cannot make 'ref' parameter of type 'A'

Reference: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.2/span-safety.md#examples


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>