Misleading error message when type is not match

@asterite Misleading error message when type is not match · Issue #12720 · crystal-lang/crystal · GitHub