You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C++: generated _cpp.h includes exports-*.h before the records they use #1658
A world that exports a resource taking a record generates a _cpp.h that doesn't compile. The user-class header is #included above the record definitions it references.
In file included from my_world.cpp:11:
In file included from ./my_world_cpp.h:4:
./exports-foo-bar-my_interface-MyResource.h:18:36: error: no type named 'Options' in namespace
'exports::foo::bar::my_interface'
18 | MyResource(my_interface::Options o);
| ~~~~~~~~~~~~~~^
./exports-foo-bar-my_interface-MyResource.h:19:42: error: no type named 'Options' in namespace
'exports::foo::bar::my_interface'
19 | static Owned New(my_interface::Options o){return Owned(new MyResource(std::move(o)));}
| ~~~~~~~~~~~~~~^
2 errors generated.
Activity