Typed body specializations solve

This commit is contained in:
Ayaz Hafiz 2022-04-13 10:42:46 -04:00
parent 389c46edcf
commit 25b3aa7ca7
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 36 additions and 1 deletions

View file

@ -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,