mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-25 21:37:48 +00:00
abilities syntax has -> implements
This commit is contained in:
parent
91e37293a2
commit
dbc0204532
21 changed files with 89 additions and 84 deletions
|
|
@ -136,8 +136,8 @@ fn find_names_needed(
|
|||
if !root_appearances.contains_key(&root) {
|
||||
roots.push(root);
|
||||
}
|
||||
// Able vars are always printed at least twice (in the signature, and in the "has"
|
||||
// clause set).
|
||||
// Able vars are always printed at least twice (in the signature, and in the
|
||||
// "implements" clause set).
|
||||
root_appearances.insert(root, Appearances::Multiple);
|
||||
}
|
||||
RecursionVar {
|
||||
|
|
|
|||
|
|
@ -1760,7 +1760,7 @@ pub enum Type {
|
|||
}
|
||||
|
||||
/// A lambda set under an arrow in a ability member signature. For example, in
|
||||
/// Default has default : {} -> a | a has Default
|
||||
/// Default has default : {} -> a | a implements Default
|
||||
/// the unspecialized lambda set for the arrow "{} -> a" would be `a:default:1`.
|
||||
///
|
||||
/// Lambda sets in member signatures are never known until those members are specialized at a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue