mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
* add test for reject action
* highlight that a compilation failure is expected
* add the converse test for action=reject
* add trailing newline
* fix wording
(cherry picked from commit 066f3ebc2a)
7 lines
140 B
Nim
7 lines
140 B
Nim
discard """
|
|
action: "reject"
|
|
"""
|
|
|
|
# this line does not compile, so the test should pass, since action="reject"
|
|
let x: int = "type mismatch"
|