Open holgerbrandl opened 2 years ago
Yes, because of usage of "top-level" variable shiftModel
inside ShiftManager
it was implicitly made inner
. It's the consequence of the recent fix for https://youtrack.jetbrains.com/issue/KT-19423. But the fix isn't complete: following cells don't know that the class is inner, and try to instantiate it as simple class by invoking <init>()
method. Inner classes don't have <init>()
constructor, they have <init>(o: Outer)
instead. That's why you get what you get.
I need to make a proper fix for REPL too, so this bug will be fixed
Any news on this one?
i am getting exactly the same error. how can i fix it?
Any chance that this could be fixed?
Consider the following example: https://github.com/holgerbrandl/kalasim/blob/master/docs/misc/callcenter_bugreport.ipynb
which fails with
The error seems to relate to the variable
val shiftIt
. When this variable is disabled, it runs without an error. So this may relate to #345 but I'm not sure.