Fix VM conversion to var type [bugfix] (#11866)
This commit is contained in:
parent
803406d07c
commit
829f719670
2 changed files with 7 additions and 2 deletions
|
|
@ -65,3 +65,8 @@ static:
|
|||
initBase(SomeBaseObj(ifb2))
|
||||
echo repr(ifb2)
|
||||
doAssert(ifb2.txt == "Initialized string from base")
|
||||
|
||||
static: # issue #11861
|
||||
var ifb2: InheritedFromBase
|
||||
initBase(ifb2)
|
||||
doAssert(ifb2.txt == "Initialized string from base")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue