Skip to content

Commit

Permalink
Only Left and returnValue gets checked for dynamic in signature (#69214)
Browse files Browse the repository at this point in the history
In CSharpcompilation there was a signature check for dynamic Types but only left and return were checked
  • Loading branch information
gero3 authored Aug 4, 2023
1 parent 7dc10ec commit 0602129
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4127,7 +4127,7 @@ void validateSignature()
// Dynamic built-in operators allow virtually all operations with all types. So we do no further checking here.
if (csharpReturnType.TypeKind is TypeKind.Dynamic ||
csharpLeftType.TypeKind is TypeKind.Dynamic ||
csharpReturnType.TypeKind is TypeKind.Dynamic)
csharpRightType.TypeKind is TypeKind.Dynamic)
{
return;
}
Expand Down

0 comments on commit 0602129

Please sign in to comment.