Such as:
class X final {};
This no longer gives a syntax error.
This change has introduced one more shift-reduce conflict in the parser.
with a conflict with a C style variable declaration with name final:
class X final;
resulting in a syntax error (for C++ not C). This is an an unusual style
for C++ code and more typical declarations do work:
X final;
Closes #672
11 lines
109 B
OpenEdge ABL
11 lines
109 B
OpenEdge ABL
%module final_c
|
|
|
|
%inline %{
|
|
struct Y {
|
|
int yval;
|
|
};
|
|
struct Y final;
|
|
void init() {
|
|
final.yval = 123;
|
|
}
|
|
%}
|