:D
This commit is contained in:
parent
21772b6419
commit
d409694b02
1 changed files with 0 additions and 0 deletions
28
tests/ccgbugs/tissues.nim
Normal file
28
tests/ccgbugs/tissues.nim
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
# bug #2233
|
||||
type MalType = object
|
||||
fun: proc: MalType
|
||||
|
||||
proc f(x: proc: MalType) =
|
||||
discard x()
|
||||
|
||||
f(nil)
|
||||
|
||||
# bug #2823
|
||||
|
||||
type A = object #of RootObj <-- Uncomment this to get no errors
|
||||
test: proc(i: A): bool
|
||||
var a: proc(i: A): bool # Or comment this line to get no errors
|
||||
|
||||
|
||||
# bug #2703
|
||||
type
|
||||
fooObj[T] = object of RootObj
|
||||
bazObj[T] = object of fooObj[T]
|
||||
x: T
|
||||
|
||||
var troz: fooObj[string]
|
||||
echo bazObj[string](troz).x
|
||||
Loading…
Add table
Add a link
Reference in a new issue