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

Class with same function name confuses arduino-builder #143

Closed
NicoHood opened this issue May 5, 2016 · 2 comments
Closed

Class with same function name confuses arduino-builder #143

NicoHood opened this issue May 5, 2016 · 2 comments
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: preprocessor Related to sketch preprocessing type: imperfection Perceived defect in any part of project

Comments

@NicoHood
Copy link

NicoHood commented May 5, 2016

Correct me if this is an IDE bug.

If a class exists with the same function name of a normal function it will throw an error. Very confusing. just try:

void setup() {}

void loop() {
  rainbow();
}

class CTest {
  public:
    void rainbow() {
      Serial.println("test2");
    }

};

void rainbow() {
  Serial.println("test");
}
@facchinm
Copy link
Member

facchinm commented May 5, 2016

Hi Nico, good point, it is a side effect of fixing ctags between 1.6.7 and 1.6.8.
The bug is being tracked here #140 (comment) and you can find a fix in this PR #131 (if you could test it it would be great!).

@facchinm facchinm closed this as completed May 5, 2016
@NicoHood
Copy link
Author

NicoHood commented May 5, 2016

Bug resolved!

@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: preprocessor Related to sketch preprocessing type: imperfection Perceived defect in any part of project labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: preprocessor Related to sketch preprocessing type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants