summary refs log tree commit diff stats
path: root/compiler/patterns.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-05-11 10:11:08 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-11 10:11:08 +0200
commitb92fd30282f5063117ae4616aba366f5f445ed8e (patch)
tree6b4ac1523c4247a22c9900bf8c5a7166d91f9335 /compiler/patterns.nim
parentf03391d4775bffb3f51c9be47baf04f8b49e2900 (diff)
downloadNim-b92fd30282f5063117ae4616aba366f5f445ed8e.tar.gz
rename tyExpr/tyStmt to tyUntyped/tyTyped (#11227)
Diffstat (limited to 'compiler/patterns.nim')
-rw-r--r--compiler/patterns.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/patterns.nim b/compiler/patterns.nim
index 560382d93..d9a6e7d1d 100644
--- a/compiler/patterns.nim
+++ b/compiler/patterns.nim
@@ -78,7 +78,7 @@ proc checkTypes(c: PPatternContext, p: PSym, n: PNode): bool =
     result = matchNodeKinds(p.constraint, n)
     if not result: return
   if isNil(n.typ):
-    result = p.typ.kind in {tyVoid, tyStmt}
+    result = p.typ.kind in {tyVoid, tyTyped}
   else:
     result = sigmatch.argtypeMatches(c.c, p.typ, n.typ, fromHlo = true)
 
@@ -241,7 +241,7 @@ proc aliasAnalysisRequested(params: PNode): bool =
       if whichAlias(param) != aqNone: return true
 
 proc addToArgList(result, n: PNode) =
-  if n.typ != nil and n.typ.kind != tyStmt:
+  if n.typ != nil and n.typ.kind != tyTyped:
     if n.kind != nkArgList: result.add(n)
     else:
       for i in 0 ..< n.len: result.add(n.sons[i])