mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Chase aliases when checking for valid extension types
This commit is contained in:
parent
aae5a46034
commit
47e4904075
4 changed files with 37 additions and 6 deletions
|
@ -682,7 +682,7 @@ fn can_extension_type<'a>(
|
|||
local_aliases,
|
||||
references,
|
||||
);
|
||||
if valid_extension_type(&ext_type) {
|
||||
if valid_extension_type(&ext_type.shallow_dealias()) {
|
||||
ext_type
|
||||
} else {
|
||||
// Report an error but mark the extension variable to be inferred
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue