Add testcase for #14880 (#16795)

This commit is contained in:
Clyybber 2021-01-22 13:14:28 +01:00 • committed by GitHub
commit bebfbaa439
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,3 +26,13 @@ type
var troz: fooObj[string] var troz: fooObj[string]
echo bazObj[string](troz).x echo bazObj[string](troz).x
# bug #14880
type step = object
exec: proc ()
const pipeline = @[step()]
let crash = pipeline[0]