mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Merge pull request #2231 from rtfeldman/joshuawarner32/record_func_type_decl
Allow function types in records
This commit is contained in:
commit
5aa67d4244
14 changed files with 692 additions and 252 deletions
|
@ -852,7 +852,7 @@ fn parse_defs_end<'a>(
|
|||
let (_, ann_type, state) = specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::located_help(min_indent + 1),
|
||||
type_annotation::located_help(min_indent + 1, false),
|
||||
min_indent + 1,
|
||||
EType::TSpace,
|
||||
EType::TIndentStart,
|
||||
|
@ -1090,7 +1090,7 @@ fn parse_expr_operator<'a>(
|
|||
let (_, ann_type, state) = specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::located_help(indented_more),
|
||||
type_annotation::located_help(indented_more, true),
|
||||
min_indent,
|
||||
EType::TSpace,
|
||||
EType::TIndentStart,
|
||||
|
@ -1117,7 +1117,7 @@ fn parse_expr_operator<'a>(
|
|||
let parser = specialize(
|
||||
EExpr::Type,
|
||||
space0_before_e(
|
||||
type_annotation::located_help(indented_more),
|
||||
type_annotation::located_help(indented_more, false),
|
||||
min_indent,
|
||||
EType::TSpace,
|
||||
EType::TIndentStart,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue