From d409694b02ae403501b23a94c21f60ad8edb7365 Mon Sep 17 00:00:00 2001
From: Clyybber <darkmine956@gmail.com>
Date: Sat, 11 Jul 2020 19:17:40 +0200
Subject: :D

---
 tests/ccgbugs/tissues.nim | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 tests/ccgbugs/tissues.nim

(limited to 'tests')

diff --git a/tests/ccgbugs/tissues.nim b/tests/ccgbugs/tissues.nim
new file mode 100644
index 000000000..7a8ede958
--- /dev/null
+++ b/tests/ccgbugs/tissues.nim
@@ -0,0 +1,28 @@
+discard """
+action: compile
+"""
+
+# bug #2233
+type MalType = object
+  fun: proc: MalType
+
+proc f(x: proc: MalType) =
+  discard x()
+
+f(nil)
+
+# bug #2823
+
+type A = object #of RootObj <-- Uncomment this to get no errors
+  test: proc(i: A): bool
+var a: proc(i: A): bool # Or comment this line to get no errors
+
+
+# bug #2703
+type
+  fooObj[T] = object of RootObj
+  bazObj[T] = object of fooObj[T]
+    x: T
+
+var troz: fooObj[string]
+echo bazObj[string](troz).x
-- 
cgit 1.4.1-2-gfad0