rsdn/nemerle — Issue #150: Use TypeVar (typed type) in member access (in quasi-quotation)
Author: VladD2
Created: 2011-10-23 14:36:50+00:00
State: open
Labels: Compiler, Feature

```nemerle
def type = typer.BindFixedType(enumType);

if (!type.IsEnum)
Message.FatalError(enumType.Location, "Expecter enum");
else
{
def fields = type.TypeInfo.GetFields(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Static);
def exprs = fields.Map(field => <[ $func($(type : typed).$(field.Name : global)) ]>);
<[ { ..$exprs } ]>
}
```