* improve line error information

* fixes #13112
This commit is contained in:
Andreas Rumpf 2020-01-13 15:47:17 +01:00 • committed by GitHub
commit eadd1ba9ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View file

@ -1,6 +1,7 @@
discard """
cmd: "nim c --gc:arc $file"
output: '''Foo(field: "Dick Laurent", k: ka, x: 0.0)
Nobody is dead
Dick Laurent is dead'''
"""
@ -23,3 +24,8 @@ x.field = "Dick Laurent"
# reference to a great movie. If you haven't seen it, highly recommended.
echo repr x
# bug #13112: bind the same finalizer multiple times:
var xx: Foo
new(xx, finalizer)
xx.field = "Nobody"