mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
@@ -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[]
|
||||
Reference in New Issue
Block a user