From 746da12d74028a0f5c1cfcc0eb14bc157df79837 Mon Sep 17 00:00:00 2001 From: cooldome Date: Tue, 12 Jun 2018 00:22:11 +0100 Subject: add comment --- compiler/sigmatch.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler') 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; -- cgit 1.4.1-2-gfad0