summary refs log tree commit diff stats
path: root/tests/ccgbugs/tpartialcs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tpartialcs.nim')
-rw-r--r--tests/ccgbugs/tpartialcs.nim20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ccgbugs/tpartialcs.nim b/tests/ccgbugs/tpartialcs.nim
new file mode 100644
index 000000000..12ff65c37
--- /dev/null
+++ b/tests/ccgbugs/tpartialcs.nim
@@ -0,0 +1,20 @@
+
+# bug #2551
+
+type Tup = tuple
+  A, a: int
+
+type Obj = object
+  A, a: int
+
+var x: Tup # This works.
+var y: Obj # This doesn't.
+
+# bug #2212
+
+proc f() =
+  let
+    p = 1.0
+    P = 0.25 + 0.5
+
+f()