[Mono-dev] Bug in compiler?

Jerry Haltom wasabi at larvalstage.net
Sun Mar 11 22:00:36 EDT 2007

public Path(Node startingNode)
	: this(new InitialStep(this, startingNode))


I have that code as a ctor in a class. Nothing special that I can see
about it. Basically just calling another ctor to do some work.

Keyword `this' is not valid in a static property, static method, or
static field initializer(CS0026)

That is what I get when compiling it.

More information about the Mono-devel-list mailing list