Skip to content

Commit 51b0ff1

Browse files
committed
AddressOf delegate signatures can accept interfaces as compatible return types
1 parent 648c838 commit 51b0ff1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeConverter/Util/FromRoslyn/IMethodSymbolExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static bool CompatibleSignatureToDelegate(this IMethodSymbol method, INam
2323
return false;
2424
}
2525

26-
if (!method.ReturnType.InheritsFromOrEquals(invoke.ReturnType)) {
26+
if (!method.ReturnType.InheritsFromOrEquals(invoke.ReturnType, true)) {
2727
return false;
2828
}
2929

0 commit comments

Comments
 (0)