fix affecting templates with explicit generic params
This commit is contained in:
parent
05bfa47996
commit
672c24e4b8
4 changed files with 23 additions and 30 deletions
|
|
@ -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]) = ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue