From 4fd79f5b47eb5aa3f9fcbd841a65360845019214 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Sun, 5 May 2019 08:26:22 +0200 Subject: Fix #11058 (#11172) --- compiler/semtypes.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 99fd62550..67f6a66db 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -950,7 +950,8 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode, if tfUnresolved notin paramType.flags: # naked typedescs are not bindOnce types if paramType.base.kind == tyNone and paramTypId != nil and - paramTypId.id == getIdent(c.cache, "typedesc").id: + (paramTypId.id == getIdent(c.cache, "typedesc").id or + paramTypId.id == getIdent(c.cache, "type").id): # XXX Why doesn't this check for tyTypeDesc instead? paramTypId = nil let t = c.newTypeWithSons(tyTypeDesc, @[paramType.base]) -- cgit 1.4.1-2-gfad0