mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Address @rtfeldman review
This commit is contained in:
parent
07b1829732
commit
34900c1f55
5 changed files with 15 additions and 15 deletions
|
@ -187,7 +187,7 @@ pub enum Expr {
|
|||
// Id n := [ Id U64 n ]
|
||||
// @Id "sasha"
|
||||
//
|
||||
// Then `name` is "Id", `argument` is "sasha", but this is not enough for us to
|
||||
// Then `opaque` is "Id", `argument` is "sasha", but this is not enough for us to
|
||||
// infer the type of the expression as "Id Str" - we need to link the specialized type of
|
||||
// the variable "n".
|
||||
// That's what `specialized_def_type` and `type_arguments` are for; they are specialized
|
||||
|
|
|
@ -40,7 +40,7 @@ pub enum Pattern {
|
|||
//
|
||||
// f = \@Id who -> strToBool who
|
||||
//
|
||||
// Then `name` is "Id", `argument` is "who", but this is not enough for us to
|
||||
// Then `opaque` is "Id", `argument` is "who", but this is not enough for us to
|
||||
// infer the type of the expression as "Id Str" - we need to link the specialized type of
|
||||
// the variable "n".
|
||||
// That's what `specialized_def_type` and `type_arguments` are for; they are specialized
|
||||
|
|
|
@ -755,7 +755,7 @@ mod test_load {
|
|||
err,
|
||||
indoc!(
|
||||
r#"
|
||||
── OPAQUE DECLARED OUTSIDE SCOPE ───────────────────────────────────────────────
|
||||
── OPAQUE TYPE DECLARED OUTSIDE SCOPE ───────────────────────────────────────────────
|
||||
|
||||
The unwrapped opaque type Age referenced here:
|
||||
|
||||
|
@ -769,7 +769,7 @@ mod test_load {
|
|||
|
||||
Note: Opaque types can only be wrapped and unwrapped in the module they are defined in!
|
||||
|
||||
── OPAQUE DECLARED OUTSIDE SCOPE ───────────────────────────────────────────────
|
||||
── OPAQUE TYPE DECLARED OUTSIDE SCOPE ───────────────────────────────────────────────
|
||||
|
||||
The unwrapped opaque type Age referenced here:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue