8ad56c8fb7
Add test for pattern_type_mismatch.
This issue has been fixed by [commit](8c1c763c2d
)
This PR is used for close #7946(Fixes #7946).
changelog: Add test for pattern_type_mismatch.