mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
11 lines
180 B
Nim
11 lines
180 B
Nim
discard """
|
|
file: "tstreams3.nim"
|
|
output: "threw exception"
|
|
"""
|
|
import streams
|
|
|
|
try:
|
|
var fs = openFileStream("shouldneverexist.txt")
|
|
except IoError:
|
|
echo "threw exception"
|