-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Allow enums in interfaces #4731
Conversation
I think we would be able to work much faster if everyone had access to @axic's local repository ;) |
} | ||
} | ||
)"; | ||
compileAndRun(sourceCode, 0, "C"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure library linking is implemented in the test suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is automatic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think it is not.
{ | ||
char const* sourceCode = R"( | ||
interface I { | ||
enum Direction { Left, Right } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it would be better to use enum Direction { A, B, Left, Right}
so that the return values show whether the interface or the library enum was used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change semantics test.
5c4e1b7
to
34a711a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #4731 +/- ##
===========================================
+ Coverage 87.53% 87.54% +<.01%
===========================================
Files 313 313
Lines 30792 30798 +6
Branches 3660 3658 -2
===========================================
+ Hits 26954 26961 +7
Misses 2585 2585
+ Partials 1253 1252 -1
|
@axic good to merge? |
Fixes #4087