[fine] Nonsense types are ICE
This commit is contained in:
parent
4bd3ac06fa
commit
8d09076586
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ impl<'a> Semantics<'a> {
|
|||
TreeKind::ExpressionStatement => self.type_of_expression_statement(tree),
|
||||
TreeKind::Identifier => self.type_of_identifier(t, tree),
|
||||
|
||||
_ => None,
|
||||
_ => self.internal_compiler_error(Some(t), "asking for a nonsense type"),
|
||||
};
|
||||
|
||||
// NOTE: These return `None` if they encounter some problem.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue