mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't mark accessors as thunks
This commit is contained in:
parent
6b491c617e
commit
f0ab9f77ca
3 changed files with 13 additions and 18 deletions
|
@ -5744,8 +5744,10 @@ fn build_pending_specializations<'a>(
|
|||
let tag = declarations.declarations[index];
|
||||
match tag {
|
||||
Value => {
|
||||
// mark this symbols as a top-level thunk before any other work on the procs
|
||||
module_thunks.push(symbol);
|
||||
if !matches!(body.value, roc_can::expr::Expr::Accessor(..)) {
|
||||
// mark this symbols as a top-level thunk before any other work on the procs
|
||||
module_thunks.push(symbol);
|
||||
}
|
||||
|
||||
// If this is an exposed symbol, we need to
|
||||
// register it as such. Otherwise, since it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue