{
  "module": "Test",
  "kind": "Linearity Error",
  "text": [
    { "type": "text", "content": "The variable " },
    { "type": "code", "content": "r" },
    {
      "type": "text",
      "content": " is consumed multiple times within the same expression."
    }
  ],
  "span": {
    "filename": "test-programs/suites/006-linearity/012-consume-twice-in-expr/Test.aum",
    "startp": { "line": 17, "column": 8 },
    "end": { "line": 17, "column": 36 }
  },
  "context": [
    [ 15, "    function main(): ExitCode is" ],
    [ 16, "        let r: R := R(x => 32);" ],
    [ 17, "        foo(consume(r), consume(r));" ],
    [ 18, "        return ExitSuccess();" ],
    [ 19, "    end;" ]
  ]
}