From edfa4f3e276c5e524186624ff6309cc6d067984e Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Tue, 30 Jul 2019 10:39:24 -0700 Subject: [PATCH] Update src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesVsPatterns.cs --- .../Test/Semantic/Semantics/NullableReferenceTypesVsPatterns.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesVsPatterns.cs b/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesVsPatterns.cs index 8ff08dbdc20..1651ad4ff99 100644 --- a/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesVsPatterns.cs +++ b/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesVsPatterns.cs @@ -50,7 +50,7 @@ class C { void Test(object? x) { - if (x is object) + if (!(x is null)) { x.ToString(); } -- GitLab