mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 02:33:58 +00:00
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user