mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2026-11-04 16:02:20 +00:00
Complex import sample and support for import dependency cycles.
This commit is contained in:
9 files changed
+33
-17
No files matched your search
@@ -0,0 +1,3 @@
|
||||
export func a() {
|
||||
println("A")
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import "c.pork"
|
||||
|
||||
export func b() {
|
||||
c()
|
||||
println("B")
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import "a.pork"
|
||||
|
||||
export func c() {
|
||||
a()
|
||||
println("C")
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import "b.pork"
|
||||
|
||||
export func d() {
|
||||
b()
|
||||
println("D")
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import "d.pork"
|
||||
|
||||
export func main() {
|
||||
d()
|
||||
}
|
||||
Reference in new issue
Block a user