Documentation

FT119

Back to documentation index
{
  "@context": "https://nxdlang.org/schema",
  "doc_id": "FT119",
  "title": "FT119 - Intentional Failures",
  "description": "Intentional Test Failures",
  "layer": "Failed Tests",
  "category": "Failed Tests - Nim",
  "keywords": [Nim, Fail, Test],
  "doc_version": "1.0",
  "status": "active"
}

# FT119

### NXD Sample:

```nxd
FUNC MAIN()
    PRINTLN("TEST")
```

### Result:

PASS

### Expected Output:

FAIL- No Imported PRINTLN

### Expected Rejection Stage:

[ ] Lexer
[ ] Parser
[ ] AST
[ ] IR
[X] Semantics
[ ] Backend

### Actual Output:

```json
{
  "module": {
    "name": "ANONYMOUS",
    "imports": []
  },
  "types": [],
  "traits": [],
  "impls": [],
  "functions": [
    {
      "name": "MAIN",
      "params": [],
      "return_type": null,
      "body": [
        {
          "Expr": {
            "Call": {
              "func": "PRINTLN",
              "args": [
                {
                  "Literal": {
                    "String": "TEST"
                  }
                }
              ]
            }
          }
        }
      ]
    }
  ],
  "statements": []
}
```

```nim
# anonymous


proc main() =
  println("TEST")


```

### Notes: