Respect coercions in inline_call

This commit is contained in:
Lukas Wirth 2021-07-10 19:16:32 +02:00
parent 7e6f40b6f1
commit 9e1eb77f6b
5 changed files with 67 additions and 19 deletions

View file

@ -576,7 +576,7 @@ impl<'db> SemanticsImpl<'db> {
self.analyze(pat.syntax()).type_of_pat(self.db, pat)
}
fn type_of_pat_with_coercion(&self, pat: &ast::Pat)-> Option<(Type, Option<Type>)> {
fn type_of_pat_with_coercion(&self, pat: &ast::Pat) -> Option<(Type, Option<Type>)> {
self.analyze(pat.syntax()).type_of_pat_with_coercion(self.db, pat)
}