Fix coercion in match with expected type

Plus add infrastructure to test type mismatches without expect.
This commit is contained in:
Florian Diebold 2021-06-03 23:12:35 +02:00
parent 124123a53b
commit 20487a1b4a
6 changed files with 183 additions and 54 deletions

View file

@ -42,7 +42,7 @@ pub struct FilePosition {
pub offset: TextSize,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
pub struct FileRange {
pub file_id: FileId,
pub range: TextRange,