Error: method is not a base #4428

Closed
yglukhov opened this Issue Jun 28, 2016 · 0 comments

Projects

None yet

2 participants

@yglukhov
Member
type A = ref object of RootObj
type B = ref object of RootObj
type C = object # change to int to make it compile and work as expected

method foo(a: A, c: C) {.base.} = echo "a"
method foo(b: B, c: C) {.base.} = echo "b"

var a = A.new()
var b = B.new()
var c: C

a.foo(c)
b.foo(c)
test.nim(8, 8) Error: method is not a base
@Araq Araq added the High Priority label Jul 11, 2016
@Araq Araq added a commit that closed this issue Jul 19, 2016
@Araq Araq fixes #4428 2d8572e
@Araq Araq closed this in 2d8572e Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment