Skip to content

Commit

Permalink
add import-test-1e.ck
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 27, 2024
1 parent 1b98da3 commit 74a2e81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/import/import-test-1e.ck
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// import statements in code evaluated by Machine.eval inherits
// the host file/code's path (otherwise it defaults to the working
// directory of the chuck host system)
Machine.eval("
@import \"Foo.ck\"
Foo a(1), b(2);
<<< (a + b).num >>>;
");

0 comments on commit 74a2e81

Please sign in to comment.