$ check app.main
= 0
stacks 0
fn app.main none
fn app.helper none
fn lib.scale none
fn lib.deep.twice none
fn app.area none
$ cc app.main
= 0
$ fmt
= 0
$ fmt lib.deep.twice
= 0
-- An enclosing namespace: scale is lib.scale, base the root's.
fn twice x int -> int = scale (scale x) + base ()
$ full app.main
= 0
-- Qualified names of every kind, a sibling through the enclosing namespace
-- (lib is the root's), and a local named as a namespace: inside the block
-- lib is the Pair and lib.a its field.
fn main = {
  var buf = arr @lib.FACTOR byte
  buf[0] = 7
  @lib.count = @lib.scale (@app.helper ()) + @lib.deep.twice 1 + @app.area @lib.Circle { 2 } + @app.area @lib.Dot
  let n = {
    let lib = @app.Pair { 1, 2 }
    lib.a + lib.b
  }
  exit (@lib.count + n + int buf[0] + @base ())
}
$ full lib.deep.twice
= 0
-- An enclosing namespace: scale is lib.scale, base the root's.
fn twice x int -> int = @lib.scale (@lib.scale x) + @base ()
$ full app.area
= 0
-- A qualified type, and arms that name another namespace's constructors.
fn area s @lib.Shape -> int = match s {
  @lib.Circle r => r * r * @lib.FACTOR
  @lib.Dot => 0
}
$ fmt lib.weigh
= 0
-- The parameter lib hides the namespace of lib.scale, not the full form's @.
fn weigh lib int -> int = scale lib
$ full lib.weigh
= 0
-- The parameter lib hides the namespace of lib.scale, not the full form's @.
fn weigh lib int -> int = @lib.scale lib
$ check helper
= 1
E007 helper:1 Unresolved nothere
$ build lib.FACTOR
= 1
E008 lib.FACTOR:0 Type a program's root is a function with no parameters, no result and a body
