Debian Codegraph @

lang/interpret_test/TestAstFunc1/duplicate_resource.txtar

raw
1 -- main.mcl --
2 import "fmt"
3
4 # these two resources are identical to each other, so we should allow it
5 file "/tmp/foo" {
6 content => "hello world",
7 }
8 file "/tmp/foo" {
9 content => fmt.printf("hello world"),
10 }
11
12 # these two resources are compatible with each other, so we should allow it
13 pkg "cowsay" {
14 state => "installed",
15 }
16 pkg "cowsay" {
17 state => "newest",
18 }
19 -- OUTPUT --
20 Edge: FuncValue -> call # fn
21 Vertex: FuncValue
22 Vertex: call
23 Vertex: const
24 Vertex: const
25 Vertex: const
26 Vertex: const
27 Vertex: const
28 Vertex: const
29 Vertex: const
30 Vertex: const