Skip to content

Commit

Permalink
Create architype_def_type1.jac
Browse files Browse the repository at this point in the history
  • Loading branch information
Thamirawaran authored Oct 10, 2024
1 parent 7ff3042 commit b31fb04
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jac/jaclang/tests/fixtures/architype_def_type1.jac
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# one way to fix this issue is allowing Declaration of architype before define it

node MyNode;

walker MyWalker{
can create with `root|MyNode entry{}
}

:node:MyNode{
can do with MyWalker entry{}
}

with entry{
Node_1 = MyNode();
Node_1 spawn MyWalker();
}

0 comments on commit b31fb04

Please sign in to comment.