diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-09-02 17:15:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 17:15:11 +0200 |
commit | a7cae2bda24871c55348173816a43144b9e668a5 (patch) | |
tree | 9c94f84b2c0c5fe7696a080086dcad3be6118647 /compiler | |
parent | 69cabaa81cf69593a8a42554fe70cce53ec8663d (diff) | |
download | Nim-a7cae2bda24871c55348173816a43144b9e668a5.tar.gz |
fixes #16325 [backport:1.4] (#18784)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 465a9a51d..9cf18277f 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -595,8 +595,7 @@ proc procParamTypeRel(c: var TCandidate, f, a: PType): TTypeRelation = # if f is metatype. result = typeRel(c, f, a) - # v--- is this correct? - if result <= isIntConv or inconsistentVarTypes(f, a): + if result <= isSubrange or inconsistentVarTypes(f, a): result = isNone #if result == isEqual: |