mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-02 18:07:59 +00:00
* Fixes Naive virtual crash the compiler fixes #22269 * adds type specific test
This commit is contained in:
@@ -74,4 +74,8 @@ var val : int32 = 10
|
||||
NimPrinter().printConstRef(message, val)
|
||||
NimPrinter().printConstRef2(message, val)
|
||||
|
||||
#bug 22269
|
||||
type Doo = object
|
||||
proc naiveMember(x: Doo): int {. virtual .} = 2
|
||||
discard naiveMember(Doo())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user