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

RSRP-469249: Nullable reference types not supported

$
0
0
Reporter Thomas Harrison (rolls) Thomas Harrison (rolls)
Created Apr 13, 2018 9:48:58 AM
Updated Apr 13, 2018 10:01:55 AM
Subsystem Code Analysis - C#
Assignee Ivan Serduk (IvanSerduk)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM, VS 2017 15.3
The nullable reference types preview released here gives incorrect warnings. This feature is planned to be in C# 8.0 so it would be good to get the ball rolling and implement this now.

https://blogs.msdn.microsoft.com/dotnet/2017/11/15/nullable-reference-types-in-csharp/

Example

var test = new NullableTest();
test.NotNull = null; //This is a compile error

public class NullableTest{

public string NotNull = "test";
public string? Nullable = null;

}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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