We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I try to compile this code:
struct Foo { int bar; int baz; } let Foo** arr = new Foo*[100];
I get this error:
main2.ljs:7:7: error: incompatible types: assigningdyn' to Foo**'
main2.ljs:7:7: error: incompatible types: assigning
Foo**'
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I believe you need to do:
typedef Foo* FooPointer; let FooPointer* arr = new FooPointer[100];
Sorry, something went wrong.
Yep, that worked. Is this a real bug? Since a lot of the syntax seems C/C++ inspired, seems like this could be a nice addition.
Yah, it seems to be broken. I'll take a look at it.
No branches or pull requests
If I try to compile this code:
I get this error:
main2.ljs:7:7: error: incompatible types: assigning
dyn' toFoo**'
What am I doing wrong?
The text was updated successfully, but these errors were encountered: