#1725 Check the self assignment

go4 Sun 11 Dec 2011

I find a stupid error in my code:

const class Main
{
  static const Main i := Main.i

  Void main()
  {
    echo(i)
  }
}

brian Sun 11 Dec 2011

Nice catch - that case wasn't caught by the compiler, but I pushed a fix. The self assignment checks are really nice, something I'd always wished Java had.

Login or Signup to reply.