From 746da12d74028a0f5c1cfcc0eb14bc157df79837 Mon Sep 17 00:00:00 2001 From: cooldome Date: Tue, 12 Jun 2018 00:22:11 +0100 Subject: [PATCH] add comment --- compiler/sigmatch.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index dd0270443f..f5a8d225aa 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;