summary refs log tree commit diff stats
path: root/tinyc/lib/bcheck.c
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-05-13 16:53:39 +0200
committerAdam Strzelecki <ono@java.pl>2015-05-13 19:10:54 +0200
commit179d82c55bda199b32a108f4ba474f47a83584c9 (patch)
treefc57492f9a8b6f6721406d92d44138551422e08d /tinyc/lib/bcheck.c
parent0bf78e262950aeaa97bf3b64e88728a5681fd2e5 (diff)
downloadNim-179d82c55bda199b32a108f4ba474f47a83584c9.tar.gz
Fix #2662: Don't convert subtype typedesc params
There is no point to issue implicit HiddenStdConv encountering subtype of
typedesc[Base] parameter on overload resolution, since this will anyway never
reach codegen. This change effectively fixes compiler bug for:

  iterator it(T: typedesc[Base]) = ...
  for s in it(SubclassOfBase): ...

Where HiddenStdConv triggered implicit instantiation of variable of type
typedesc[Base] in for transform, that eventually fails at getUniqueType, that
refuses to work for typedesc.
Diffstat (limited to 'tinyc/lib/bcheck.c')
0 files changed, 0 insertions, 0 deletions