This commit is contained in:
parent
4d20aafb5e
commit
ecc0090939
5 changed files with 38 additions and 17 deletions
20
tests/ccgbugs/tpartialcs.nim
Normal file
20
tests/ccgbugs/tpartialcs.nim
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue