{
"@context": "https://nxdlang.org/schema",
"doc_id": "PT130",
"title": "PT130 - Intentional Failures",
"description": "Intentional Test Failures",
"layer": "Passed Tests",
"category": "Passed Tests - Nim",
"keywords": [Nim, Pass, Test],
"doc_version": "1.0",
"status": "active"
}
# PT130 Intentional Failure
### NXD Sample:
```nxd
MODULE TEST:
FUNC MAIN()
CONST COUNT SET 1
LOOP:
PRINTLN(COUNT ADD 1)
```
### Result:
FAIL
### Expected Output:
FAIL - Invalid expressiopn syntax
### Expected Rejection Stage:
[ ] Lexer
[X] Parser
[ ] AST
[ ] IR
[ ] Semantics
[ ] Backend
### Actual Output:
N/A
### Notes:
intentional Parser failure. no IR JSON generated. Parser encountered a colon while parsing a primary expression.
A colon is not a valid primary expression token in this context.
Documentation