File: incomplete.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (58 lines) | stat: -rw-r--r-- 830 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Issue #553

-- in.cue --
a: "foo"
b: "boo"
commands: {
	#c: {
		help: "help!"
	}
}
out: """
    a is \(a)
    b is \(b)

    c is \(commands.#c.help)
    d is \(commands.#d.help)
    """
-- out/eval/stats --
Leaks:  0
Freed:  7
Reused: 3
Allocs: 4
Retain: 0

Unifications: 7
Conjuncts:    11
Disjuncts:    7
-- out/eval --
(struct){
  a: (string){ "foo" }
  b: (string){ "boo" }
  commands: (struct){
    #c: (#struct){
      help: (string){ "help!" }
    }
  }
  out: (_|_){
    // [incomplete] out: invalid interpolation: undefined field: #d:
    //     ./in.cue:8:6
    //     ./in.cue:13:21
  }
}
-- out/compile --
--- in.cue
{
  a: "foo"
  b: "boo"
  commands: {
    #c: {
      help: "help!"
    }
  }
  out: "a is \(〈0;a〉)
  b is \(〈0;b〉)
  
  c is \(〈0;commands〉.#c.help)
  d is \(〈0;commands〉.#d.help)"
}