mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 10:24:44 +00:00
fixes #4089
This commit is contained in:
@@ -576,7 +576,7 @@ proc getTypeDescAux(m: BModule, typ: PType, check: var IntSet): Rope =
|
||||
result = getTypeDescAux(m, et, check) & star
|
||||
idTablePut(m.typeCache, t, result)
|
||||
of tyOpenArray, tyVarargs:
|
||||
result = getTypeDescAux(m, t.sons[0], check) & "*"
|
||||
result = getTypeDescWeak(m, t.sons[0], check) & "*"
|
||||
idTablePut(m.typeCache, t, result)
|
||||
of tyProc:
|
||||
result = getTypeName(t)
|
||||
|
||||
12
tests/ccgbugs/tweakopenarray.nim
Normal file
12
tests/ccgbugs/tweakopenarray.nim
Normal file
@@ -0,0 +1,12 @@
|
||||
# bug #4089
|
||||
|
||||
type
|
||||
Proc = proc(args: openArray[Bar]): Bar
|
||||
|
||||
Foo = object
|
||||
p: Proc
|
||||
|
||||
Bar = object
|
||||
f: Foo
|
||||
|
||||
proc bar(val: Foo): Bar = Bar()
|
||||
Reference in New Issue
Block a user