Parse _ in type annotations as an 'Inferred' type

This commit is contained in:
Joshua Warner 2021-11-17 17:49:04 -08:00
parent 91c97dbba4
commit 7f5b873357
9 changed files with 64 additions and 1 deletions

View file

@ -240,6 +240,9 @@ pub enum TypeAnnotation<'a> {
tags: Collection<'a, Loc<Tag<'a>>>,
},
/// '_', indicating the compiler should infer the type
Inferred,
/// The `*` type variable, e.g. in (List *)
Wildcard,