mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Typed body specializations solve
This commit is contained in:
parent
389c46edcf
commit
25b3aa7ca7
3 changed files with 36 additions and 1 deletions
|
@ -1306,7 +1306,9 @@ fn canonicalize_pending_value_def<'a>(
|
|||
// which also implies it's not a self tail call!
|
||||
//
|
||||
// Only defs of the form (foo = ...) can be closure declarations or self tail calls.
|
||||
if let Pattern::Identifier(symbol) = loc_can_pattern.value {
|
||||
if let Pattern::Identifier(symbol)
|
||||
| Pattern::AbilityMemberSpecialization { ident: symbol, .. } = loc_can_pattern.value
|
||||
{
|
||||
if let Closure(ClosureData {
|
||||
function_type,
|
||||
closure_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue