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
Code examle, reprodusing error :
module Program { fun1[T]():T where T:new() { T() } Main() : void { def fun2[T]():T where T:new() { T() } def t1=fun1.[int](); //ok def t2=fun2.[int](); //Error: don't know how to apply generic specifier to fun2.[?] } }
The text was updated successfully, but these errors were encountered:
Same bugs:
https://code.google.com/p/nemerle/issues/detail?id=661 https://code.google.com/p/nemerle/issues/detail?id=838 https://code.google.com/p/nemerle/issues/detail?id=916 https://code.google.com/p/nemerle/issues/detail?id=1335
I think we should disable this feature untill someone fixes all cases.
Sorry, something went wrong.
[Compiler] Fix: Can't apply generic specifier to a local function. Co…
bc310e2
…ses #72.
9ab13bd
The 1335 work well (on .Net 4). And 661, 838 and 916 in not a bug, really.
Fixed
1335 Compiles but fails in runtime:
using System.Console; module M { Main() : void { def foo[T]() { def bar[S]() where S : T { } bar } foo()(); } }
Unhandled Exception: System.TypeLoadException: Method has circular method type p arameter constraints.
I disagree, I think those cases are bugs, otherwise we must disable local generic functions.
OK, you can open new issue for this exemple.
VladD2
No branches or pull requests
Code examle, reprodusing error :
The text was updated successfully, but these errors were encountered: