mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 09:07:21 +00:00
Merge pull request #7296 from smores56/proper-try-keyword
Proper `try` keyword
This commit is contained in:
commit
193c23bac8
33 changed files with 1036 additions and 521 deletions
|
@ -8,7 +8,7 @@ use roc_module::symbol::{ModuleId, Symbol};
|
|||
use roc_parse::ast::Base;
|
||||
use roc_parse::pattern::PatternType;
|
||||
use roc_region::all::{Loc, Region};
|
||||
use roc_types::types::AliasKind;
|
||||
use roc_types::types::{AliasKind, EarlyReturnKind};
|
||||
|
||||
use crate::Severity;
|
||||
|
||||
|
@ -244,6 +244,7 @@ pub enum Problem {
|
|||
},
|
||||
ReturnOutsideOfFunction {
|
||||
region: Region,
|
||||
return_kind: EarlyReturnKind,
|
||||
},
|
||||
StatementsAfterReturn {
|
||||
region: Region,
|
||||
|
@ -504,7 +505,7 @@ impl Problem {
|
|||
| Problem::OverAppliedDbg { region }
|
||||
| Problem::UnappliedDbg { region }
|
||||
| Problem::DefsOnlyUsedInRecursion(_, region)
|
||||
| Problem::ReturnOutsideOfFunction { region }
|
||||
| Problem::ReturnOutsideOfFunction { region, .. }
|
||||
| Problem::StatementsAfterReturn { region }
|
||||
| Problem::ReturnAtEndOfFunction { region }
|
||||
| Problem::UnsuffixedEffectfulRecordField(region)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue