From ecc009093933887ab692efd5db099d752a1d2e6b Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 24 Apr 2015 17:07:36 +0200 Subject: fixes #2551; fixes #2212; breaks bootstrapping in debug mode; bootstrap with -d:release --- tests/ccgbugs/tpartialcs.nim | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/ccgbugs/tpartialcs.nim (limited to 'tests/ccgbugs/tpartialcs.nim') 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() -- cgit 1.4.1-2-gfad0