Skip to content

Commit b692438

Browse files
committed
Revert "fixes #13378 [backport] (#13392)"
This reverts commit 14e1f82.
1 parent cfd0ae4 commit b692438

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

compiler/sigmatch.nim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,8 +1945,6 @@ proc localConvMatch(c: PContext, m: var TCandidate, f, a: PType,
19451945

19461946
if result != nil:
19471947
if result.typ == nil: return nil
1948-
# bug #13378, ensure we produce a real generic instantiation:
1949-
result = c.semExpr(c, call)
19501948
# resulting type must be consistent with the other arguments:
19511949
var r = typeRel(m, f.sons[0], result.typ)
19521950
if r < isGeneric: return nil

tests/generics/tgeneric0.nim

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ discard """
44
0
55
float32
66
float32
7-
(name: "Resource 1", readers: ..., writers: ...)
87
'''
98
"""
109

@@ -125,18 +124,3 @@ block tgeneric5:
125124
echo T
126125
127126
bar(0.0'f32)
128-
129-
# bug #13378
130-
131-
type
132-
Resource = ref object of RootObj
133-
name: string
134-
readers, writers: seq[RenderTask]
135-
136-
RenderTask = ref object
137-
name: string
138-
139-
var res = Resource(name: "Resource 1")
140-
141-
(proc (r: typeof(res)) =
142-
echo r[])(res)

0 commit comments

Comments
 (0)