summary refs log tree commit diff stats
path: root/tests/ccgbugs/tpartialcs.nim
blob: 12ff65c3767622369c08ff56da9e8a4d344f6f2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()