dickwall/subcut — Issue #7: Problems with self reference in NewBindingModule
Author: timgesekus
Created: 2011-12-01 07:46:54+00:00
State: open

object DefaultWiring extends NewBindingModule({ module =>
bind[DataManagerBagProvider] toSingleInstance {new DefaultDataManagerBagProvider()(DefaultWiring)}
}

Doesn't work:

The compiler message is:
error: super constructor cannot be passed a self reference unless parameter is declared by-name

Tried current master and 0.9 with scala-2.9.1

Any ideas?

Tim