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
using System;
using System.Linq;
using System.Collections.Generic;
class A
{
public F(i : int) : bool { true }
}
module M
{
public F[T]() : IEnumerable[int]
{
for(;false;)
{
def j = match(A().F <| 1) { |_ =>1 };
}
yield default(int);
}
}
module P
{
Main() : void { }
}
Compiler fails:
←[01;31merror←[0m: internal compiler error: got ArgumentException (The specified
Type must not be a generic type definition.
Parameter name: type)
at System.Reflection.Emit.TypeBuilder.GetField(Type type, FieldInfo field)
at Nemerle.Compiler.ILEmitter.FrameworkGetField(Type t, FieldInfo m)
at Nemerle.Compiler.ILEmitter.GetFieldInfo(Type _from_type, IField meth)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit_exprs_push(LocalBuilder[] local_variables,
list`1 exprs)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.emit(TExpr expr)
at Nemerle.Compiler.ILEmitter.Run()
at Nemerle.Compiler.MethodBuilder._N__N_lambda__69172__69279.apply_void()
at Nemerle.Compiler.TypeBuilder.BeforeFinalizeType()
at Nemerle.Compiler.TypeBuilder.EmitImplementation()
at Nemerle.Compiler.TypeBuilder._N__N_lambda__64132__64162.apply_void()
at Nemerle.Compiler.Solver.Enqueue(FunctionVoid action)
at Nemerle.Compiler.ManagerClass.Run()
at Nemerle.CommandlineCompiler.MainClass.main_with_catching()
While removing [T] from F, making it non generic makes compile happy.
The text was updated successfully, but these errors were encountered:
Compiler fails:
While removing [T] from F, making it non generic makes compile happy.
The text was updated successfully, but these errors were encountered: