{
"@context": "https://nxdlang.org/schema",
"doc_id": "PT111",
"title": "PT111- Intentional Failures",
"description": "Intentional Test Failures",
"layer": "Passed Tests",
"category": "Passed Tests - Nim",
"keywords": [Nim, Pass, Test],
"doc_version": "1.0",
"status": "active"
}
# PT111 Intentional Failure
### NXD Sample:
```nxd
MODULE TEST
MAIN FUNC()
LET VALID SET false
IF VALID:
PRINTLN("PASS")
ELSE:
PRINTLN("FAIL")
```
### Result:
FAIL
### Expected Output:
FAIL - Function declaration order violation
### Expected Rejection Stage:
[ ] Lexer
[X] Parser
[ ] AST
[ ] IR
[ ] Semantics
[ ] Backend
### Actual Output:
N/A
### Notes:
intentional Parser failure. no IR JSON generated. NXD requires the function declaration keyword FUNC to appear before the function identifier.
Documentation