summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorcooldome <ariabushenko@bk.ru>2018-06-12 00:22:11 +0100
committercooldome <ariabushenko@bk.ru>2018-06-12 00:22:11 +0100
commit746da12d74028a0f5c1cfcc0eb14bc157df79837 (patch)
tree3fd378d906744d56738773288d95ca9fb8890749
parent1b7cf3df5192ab1d7612ba0b349117a8960156e3 (diff)
downloadNim-746da12d74028a0f5c1cfcc0eb14bc157df79837.tar.gz
add comment
-rw-r--r--compiler/sigmatch.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index dd0270443..f5a8d225a 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -2369,6 +2369,7 @@ proc argtypeMatches*(c: PContext, f, a: PType, from_hlo = false): bool =
   if not from_hlo:
     res != nil
   else:
+    # pattern templates do not allow for conversions except from int literal
     res != nil and m.convMatches == 0 and m.intConvMatches in [0, 256]
 
 proc instTypeBoundOp*(c: PContext; dc: PSym; t: PType; info: TLineInfo;