fixes #4564
This commit is contained in:
parent
186bfe4475
commit
6d98c717de
3 changed files with 15 additions and 3 deletions
3
tests/template/mlt.nim
Normal file
3
tests/template/mlt.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
type Point* = ref object of RootObj
|
||||
proc `>`*(p1, p2: Point): bool = false
|
||||
7
tests/template/tlt.nim
Normal file
7
tests/template/tlt.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
import mlt
|
||||
# bug #4564
|
||||
type Bar* = ref object of RootObj
|
||||
proc foo(a: Bar): int = 0
|
||||
var a: Bar
|
||||
let b = a.foo() > 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue