We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code does not compile today, as the compiler does not recognize that foo is a method of B.
foo
B
interface A { proc Self.foo(x: int): void { writeln("x ", x); } } record B: A { } var x = new B(); x.foo(11);
This gives the following error:
foo.chpl:10: error: unresolved call 'B.foo(11)' foo.chpl:10: note: because no functions named foo found in scope
However, the following does work
interface A { proc Self.foo(x: int): void { writeln("x ", x); } } record B: A { } var x = new B(); proc callFoo(x: A) do x.foo(10); callFoo(x);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code does not compile today, as the compiler does not recognize that
foo
is a method ofB
.This gives the following error:
However, the following does work
The text was updated successfully, but these errors were encountered: