work
work
Exception in thread “main” java.lang.ClassCastException: unitcraftcard.bug.Rule cannot be cast to kotlin.jvm.functions.Function0
at unitcraftcard.bug.BugPackage$Bug$3f2504a8.main(Bug.kt:19)
at unitcraftcard.bug.BugPackage.main(Bug.kt:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Last statement fails with strange exception. (Kotlin 0.12.613.Idea141.7)