Documentation

PT137 Intentional Failure

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

# PT137 Intentional Failure

### NXD Sample:

```nxd
MODULE TEST

FUNC MAIN()
    CONST VALUE LET 10

    PRINTLN(CLONE VALUE)
    PRINTLN(BORROW VALUE)
    PRINTLN(MOVE VALUE)
```

### Result:

FAIL - Parser

### Expected Output:

FAIL - Malformed constant declaration

### Expected Rejection Stage:

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

### Actual Output:

N/A

### Notes:

Intentional parser failure. No IR JSON created. Parser expected SET keyword while processing CONST statement.
Encountered LET keyword instead.