dalexander
11/18/2015, 4:20 PMpublic companion object Singleton: SomeInterface by internalInstance {
val internalInstance: SomeInterface = SomeInterfaceImplementor()
}
Is there any way to make delegating to a member variable work? This snippet produces the error Variable 'internalInstance' must be initialized although it seems like it should be initialized? Is there something that happens before vals are initialized during object creation that would cause issues?