rsdn/nemerle — Issue #239: Add support of static field to Nemerle.Linq.ToExpression macro
Author: VladD2
Created: 2012-01-08 21:26:54+00:00
State: open
Labels: Bug, Macro

The following code fails when it starts.

```nemerle
using System;
using System.Console;

public module TestGen[TFrom,TTo]
{
public GetExpr() : System.Linq.Expressions.Expression[System.Func[DateTime]]
{
Nemerle.Linq.ToExpression(() => DateTime.MaxValue)
}
}

module Program
{
Main() : void
{
WriteLine(TestGen.GetExpr().Compile()() == DateTime.MaxValue);
}
}

/*
BEGIN-OUTPUT
True
END-OUTPUT
*/
```