#1191 Param default expr cannot access itself

brian Mon 30 Aug 2010

This code should be caught at compile time:

const class Foo
{
  Void bar(Str x := x) {}  
  Void main() { bar() }
}

Instead it fails at runtime with

java.lang.VerifyError: (class: fan/play_0/Foo, method: bar signature: ()V) 
     Accessing value from uninitialized register 1

brian Mon 30 Aug 2010

Promoted to ticket #1191 and assigned to brian

brian Wed 8 Sep 2010

Ticket resolved in 1.0.55

changeset

Login or Signup to reply.