Skip to content

Commit

Permalink
Handle actor type in stable function GC
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-blaeser committed Nov 22, 2024
1 parent ab89d6e commit fd40011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/codegen/compile_enhanced.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8848,6 +8848,7 @@ module EnhancedOrthogonalPersistence = struct
| Prim _ | Any | Non-> false
| Obj ((Object | Memory), field_list) | Variant field_list ->
List.exists (fun field -> go visited field.typ) field_list
| Obj (Actor, _) -> false
| Tup type_list ->
List.exists (go visited) type_list
| Array nested | Mut nested | Opt nested ->
Expand Down
1 change: 1 addition & 0 deletions test/run-drun/nested-stable-functions.mo
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//ENHANCED-ORTHOGONAL-PERSISTENCE-ONLY
import Prim "mo:prim";

actor {
Expand Down

0 comments on commit fd40011

Please sign in to comment.