void expectArgumentMatchesParameter ( Node n , JSType argType , JSType paramType , Node callNode , int ordinal ) { if ( ! argType . isSubtypeOf ( paramType ) ) { mismatch ( n , SimpleFormat . format ( "actual parameter %d of %s does not match formal parameter" , ordinal , typeRegistry . getReadableTypeNameNoDeref ( callNode . getFirstChild ( ) ) ) , argType , paramType ) ; } else if ( ! argType . isSubtypeWithoutStructuralTyping ( paramType ) ) { TypeMismatch . recordImplicitInterfaceUses ( this . implicitInterfaceUses , n , argType , paramType ) ; TypeMismatch . recordImplicitUseOfNativeObject ( this . mismatches , n , argType , paramType ) ; } }
Expect that the type of an argument matches the type of the parameter that it s fulfilling .