-
Notifications
You must be signed in to change notification settings - Fork 40
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
invalid generated C for HashMap of Func #268
Comments
Yeah well, you see, the problem is that.. functions don't really have a class (technically, a Func is, often an instance of the cover 'Closure', defined in the sdk, and Does it work when you just instantiate a HashMap<String, Func> ? (Instead of trying to extend it?) |
this code works fine :
and generates somewhere
so, I think that the missing part is :
|
So this must be a problem in type-resolving of parent class when extending, right? |
@Shamanas I wouldn't say it's a problem of resolving. As said above, Func is a weird, weird type. If I were you I'd begin to search for when the place these lines are written out:
It's proably some codepath that doesn't account for Func's dual nature :) |
Tried to fix that but it was too difficult xO Will check it out another time |
the following code generates invalid (incomplete) C code :
C generated :
The text was updated successfully, but these errors were encountered: