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 11, 2018 8:05:15 PM
Resolved Apr 11, 2018 8:05:15 PM
Subsystem Code Analysis - C#
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.1
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