summary refs log tree commit diff stats
path: root/tests/ccgbugs/tpartialcs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-24 17:07:36 +0200
committerAraq <rumpf_a@web.de>2015-04-25 23:16:57 +0200
commitecc009093933887ab692efd5db099d752a1d2e6b (patch)
tree5b30ece9cbc8f4f7990bcfa7a8ebf8ff4d2fa155 /tests/ccgbugs/tpartialcs.nim
parent4d20aafb5eb0e193c031f52998d50fdf905ab7e8 (diff)
downloadNim-ecc009093933887ab692efd5db099d752a1d2e6b.tar.gz
fixes #2551; fixes #2212; breaks bootstrapping in debug mode; bootstrap with -d:release
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()