We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e354f91 commit fe6d1e3Copy full SHA for fe6d1e3
src/dparse/parser.d
@@ -2410,8 +2410,7 @@ class Parser
2410
else
2411
{
2412
goToBookmark(b);
2413
- error("Declaration expected");
2414
- return null;
+ goto type;
2415
}
2416
2417
test/pass_files/mixin_types.d
@@ -0,0 +1,7 @@
1
+mixin("int") variableName;
2
+void foo(mixin("int") arg) {
3
+ mixin("int") localVar;
4
+}
5
+struct S {
6
+ mixin("int") foo;
7
0 commit comments