Skip to content

Commit 552f89d

Browse files
committed
AddressOf delegate signatures can accept classes implementing the parameter interface as compatible parameter types
1 parent 9a08d6e commit 552f89d

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
@@ -28,7 +28,7 @@ public static bool CompatibleSignatureToDelegate(this IMethodSymbol method, INam
2828
}
2929

3030
for (var i = 0; i < method.Parameters.Length; i++) {
31-
if (!invoke.Parameters[i].Type.InheritsFromOrEquals(method.Parameters[i].Type)) {
31+
if (!invoke.Parameters[i].Type.InheritsFromOrEquals(method.Parameters[i].Type, true)) {
3232
return false;
3333
}
3434
}

0 commit comments

Comments
 (0)