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

Inherited 'operator dot' is not callable when declared in separate file #972

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frodiwe
Copy link

@frodiwe frodiwe commented Feb 15, 2024

Hi!

I run upon a case where you are not able to call inherited operator . function because of field not found in (30503).
I have added test case for the issue in this PR.

The case seems to be like this:

File_A: declare base class (A) with operator .
File_B: declare derived class B from class A
File_C: require File_B, declare variable of type class B and call operator . (it should be there because class B is derived from class A)

It is fixable by requiring File_A in File_C (along with File_B) but I suppose it is not how it was intended to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant