dagguh
11/08/2018, 3:58 PMInheritance from an interface with ‘@JvmDefault’ members is only allowed with -Xjvm-default option
I tried Googling and searching in this Slack, but came up short.
I understand why the interface compilation needs this flag. But why do the implementations need this flag too? Can't the compiler see that the interface is compiled on JVM target 8 and uses the default
Java 8 in the method and simply compile as if you implemented in Java?
Here's a concrete incarnation of this problem: https://ecosystem.atlassian.net/browse/JPERF-260max.kammerer
11/09/2018, 9:56 AMdagguh
11/15/2018, 3:37 PM@JvmDefault
is not documented in the docs, or in the annotation KDoc or as an IntelliJ warning
PS. despite the experimental status, do we know why the implementors need the compiler flag?russhwolf
11/15/2018, 4:09 PM@JvmDefault
came in before the @Experimental
annotation existed