* fix #13115

* fix testament
This commit is contained in:
flywind 2020-11-28 04:04:36 +08:00 • committed by GitHub
commit c555525227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 10 deletions

View file

@ -0,0 +1,13 @@
discard """
exitcode: 1
targets: "c"
matrix: "-d:debug; -d:release"
outputsub: '''t13115.nim(13) t13115
Error: unhandled exception: This char is'''
outputsub: ''' and works fine! [Exception]'''
"""
const b_null: char = 0.char
var msg = "This char is `" & $b_null & "` and works fine!"
raise newException(Exception, msg)