fix affecting templates with explicit generic params

This commit is contained in:
Zahary Karadjov 2017-05-13 20:48:33 +03:00
commit 672c24e4b8
4 changed files with 23 additions and 30 deletions

View file

@ -147,7 +147,7 @@ also have pointer-like covariance:
.. code-block:: nim
type
GuiWidget = object of TObject
GuiWidget = object of RootObj
Button = object of GuiWidget
ComboBox = object of GuiWidget
@ -184,7 +184,7 @@ sequence (i.e. it will be covariant only when instantiated with ``ptr`` and
.. code-block:: nim
type
Base = object of TObject
Base = object of RootObj
Derived = object of Base
proc consumeBaseValues(b: RingBuffer[Base]) = ...