Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: method is not a base #4428

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

Error: method is not a base #4428

yglukhov opened this issue Jun 28, 2016 · 0 comments
Labels

Comments

@yglukhov
Copy link
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 Severe label Jul 11, 2016
@Araq Araq closed this as completed in 2d8572e Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants