parent
d0f4a929e0
commit
d94ee75d1c
2 changed files with 11 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ proc semTypeIdent(c: PContext, n: PNode): PSym =
|
|||
if n.kind == nkSym:
|
||||
result = getGenSym(c, n.sym)
|
||||
else:
|
||||
result = pickSym(c, n, {skType, skGenericParam})
|
||||
result = pickSym(c, n, {skType, skGenericParam, skParam})
|
||||
if result.isNil:
|
||||
result = qualifiedLookUp(c, n, {checkAmbiguity, checkUndeclared})
|
||||
if result != nil:
|
||||
|
|
|
|||
10
tests/proc/t8357.nim
Normal file
10
tests/proc/t8357.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
output: "Hello"
|
||||
"""
|
||||
|
||||
type
|
||||
T = ref int
|
||||
|
||||
let r = new(string)
|
||||
r[] = "Hello"
|
||||
echo r[]
|
||||
Loading…
Add table
Add a link
Reference in a new issue