File tree Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is free and unencumbered software released into the public domain.
2
+ # See ../LICENSE.unlicense
3
+
4
+ # PLZTEST type compile_failure
5
+
6
+ [Entrypoint_1]
7
+ type = program
8
+ modules = [Entrypoint1a, Entrypoint1b]
9
+
Original file line number Diff line number Diff line change
1
+ A compilation error occured and this error is not handled gracefully
2
+ by the Plasma compiler. Sorry.
3
+ Message: Unknown symbol: T1a.test1a
4
+ Context: ../entrypoint_1b.p:14
5
+ plzc location: predicate `pre.from_ast.ast_to_pre_expr_2'/7
6
+ plzc file: pre.from_ast.m
Original file line number Diff line number Diff line change
1
+ /*
2
+ * vim: ft=plasma
3
+ * This is free and unencumbered software released into the public domain.
4
+ * See ../LICENSE.unlicense
5
+ */
6
+
7
+ module Entrypoint1a
8
+
9
+ // Function is not exported.
10
+ entrypoint
11
+ func test1a () uses IO -> Int {
12
+ print !(" Test 1\n" )
13
+
14
+ return 0
15
+ }
16
+
Original file line number Diff line number Diff line change
1
+ /*
2
+ * vim: ft=plasma
3
+ * This is free and unencumbered software released into the public domain.
4
+ * See ../LICENSE.unlicense
5
+ */
6
+
7
+ module Entrypoint1b
8
+
9
+ import Entrypoint1a as T1a
10
+
11
+ func test1b () uses IO -> Int {
12
+ // Call should fail because although test2a is an entrypoin it is not
13
+ // exported.
14
+ return T1a.test1a !()
15
+ }
16
+
You can’t perform that action at this time.
0 commit comments