mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Parse _ in type annotations as an 'Inferred' type
This commit is contained in:
parent
91c97dbba4
commit
7f5b873357
9 changed files with 64 additions and 1 deletions
|
@ -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,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue