[nem-en] How field initializers are parsed?

vc vc at rsdn.ru
Sat Dec 16 20:29:53 CET 2006


> > -------------------------------------------------
> > Form1._N_field_initialiser__components() : void
> > -------------------------------------------------
> >
> > The typed body of this method is just {()}

It's very strange.

Body of this methods must by " _ = <field-init-expression>;"

> > and when I use
> > MethodBuilder.BodyTyped on it assertion fails because its Location's
> FileIndex
> > is 0.

If Location equals to Location.Default it is bug.
Please, add unit test simulated this situations (into
Nemerle.Compiler.Utils\Nemerle.Completion2\Tests\Tests.n).




More information about the devel-en mailing list