From bebfbaa439194a15a9630d0e86ed677dde27c372 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Fri, 22 Jan 2021 13:14:28 +0100 Subject: [PATCH] Add testcase for #14880 (#16795) --- tests/ccgbugs/tissues.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/ccgbugs/tissues.nim b/tests/ccgbugs/tissues.nim index 7a8ede9589..a0c402cc07 100644 --- a/tests/ccgbugs/tissues.nim +++ b/tests/ccgbugs/tissues.nim @@ -26,3 +26,13 @@ type var troz: fooObj[string] echo bazObj[string](troz).x + + +# bug #14880 +type step = object + exec: proc () + +const pipeline = @[step()] + +let crash = pipeline[0] +