mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Deprecate backpassing to prepare for eventual removal
This commit is contained in:
parent
a14a110293
commit
50f6e11423
34 changed files with 778 additions and 490 deletions
|
@ -3389,8 +3389,8 @@ fn inspect_custom_type() {
|
|||
|
||||
myToInspector : HelloWorld -> Inspector f where f implements InspectFormatter
|
||||
myToInspector = \@HellowWorld {} ->
|
||||
fmt <- Inspect.custom
|
||||
Inspect.apply (Inspect.str "Hello, World!\n") fmt
|
||||
Inspect.custom \fmt ->
|
||||
Inspect.apply (Inspect.str "Hello, World!\n") fmt
|
||||
|
||||
main =
|
||||
Inspect.inspect (@HelloWorld {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue