mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Get a failing specialize_expr test
This commit is contained in:
parent
2af00caa9c
commit
ed6ad1bc82
31 changed files with 437 additions and 4949 deletions
|
@ -2,7 +2,7 @@ use crate::pattern::Pattern;
|
|||
use roc_region::all::{Loc, Region};
|
||||
use roc_types::types::{AnnotationSource, PReason, Reason};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Expected<T> {
|
||||
NoExpectation(T),
|
||||
FromAnnotation(Loc<Pattern>, usize, AnnotationSource, T),
|
||||
|
@ -10,7 +10,7 @@ pub enum Expected<T> {
|
|||
}
|
||||
|
||||
/// Like Expected, but for Patterns.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum PExpected<T> {
|
||||
NoExpectation(T),
|
||||
ForReason(PReason, T, Region),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue