mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
improve opaque types tip
This commit is contained in:
parent
5b87d82b01
commit
30a76a092b
3 changed files with 16 additions and 27 deletions
|
@ -8240,10 +8240,8 @@ In roc, functions are always written as a lambda, like{}
|
|||
|
||||
F Str
|
||||
|
||||
Tip: Type comparisons between an opaque type are only ever equal if
|
||||
both types are the same opaque type. Did you mean to create an opaque
|
||||
type by wrapping it? If I have an opaque type Age := U32 I can create
|
||||
an instance of this opaque type by doing @Age 23.
|
||||
Tip: *Add type annotations* to functions or values to help you figure
|
||||
this out.
|
||||
"#
|
||||
);
|
||||
|
||||
|
@ -8277,10 +8275,8 @@ In roc, functions are always written as a lambda, like{}
|
|||
|
||||
Age
|
||||
|
||||
Tip: Type comparisons between an opaque type are only ever equal if
|
||||
both types are the same opaque type. Did you mean to create an opaque
|
||||
type by wrapping it? If I have an opaque type Age := U32 I can create
|
||||
an instance of this opaque type by doing @Age 23.
|
||||
Tip: *Add type annotations* to functions or values to help you figure
|
||||
this out.
|
||||
"
|
||||
);
|
||||
|
||||
|
@ -10403,10 +10399,8 @@ In roc, functions are always written as a lambda, like{}
|
|||
|
||||
OList
|
||||
|
||||
Tip: Type comparisons between an opaque type are only ever equal if
|
||||
both types are the same opaque type. Did you mean to create an opaque
|
||||
type by wrapping it? If I have an opaque type Age := U32 I can create
|
||||
an instance of this opaque type by doing @Age 23.
|
||||
Tip: *Add type annotations* to functions or values to help you figure
|
||||
this out.
|
||||
"
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue