Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05ecbcf

Browse files
committed
nullability annotation fix in MaybeMethodBase
1 parent cd97a46 commit 05ecbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/StateSerialization/MaybeMethodBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal struct MaybeMethodBase<T> : ISerializable where T: MethodBase
1919
const string SerializationIsCtor = "c";
2020
const string SerializationMethodName = "n";
2121

22-
public static implicit operator MaybeMethodBase<T> (T ob) => new MaybeMethodBase<T>(ob);
22+
public static implicit operator MaybeMethodBase<T> (T? ob) => new (ob);
2323

2424
string name;
2525
MethodBase? info;

0 commit comments

Comments
 (0)