-
Notifications
You must be signed in to change notification settings - Fork 181
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
Generic error #322
Comments
Try with Delegate and then call Invoke() void MyFun(Delegate someAction) { |
Thx, its work. |
A bit more complicated: public void MyFun < TData > (Action < TData > onSuccess) .... MyFun< string >(delegate(string data) still silent fault compilation |
At the moment you cannot declare generic types and methods in your code that is compiled by the script# compiler. You can only declare those types within separate import assemblies that aren't being compiled to script, but rather just containing API declarations. |
Could you explain your thought? |
This is a limitation in the current implementation. |
This code pattern no compile
void MyFun(Action someAction) {
// do somthing
}
But error messages is no.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
The text was updated successfully, but these errors were encountered: