File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
src/jmh/kotlin/benchmarks/flow/scrabble Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 2424tasks.named<KotlinCompile >(" compileJmhKotlin" ) {
2525 kotlinOptions {
2626 jvmTarget = " 1.8"
27- freeCompilerArgs + = " -Xjvm-default=enable "
27+ freeCompilerArgs + = " -Xjvm-default=all "
2828 }
2929}
3030
Original file line number Diff line number Diff line change @@ -34,14 +34,12 @@ abstract class ShakespearePlaysScrabble {
3434 public interface LongWrapper {
3535 fun get (): Long
3636
37- @JvmDefault
3837 fun incAndSet (): LongWrapper {
3938 return object : LongWrapper {
4039 override fun get (): Long = this @LongWrapper.get() + 1L
4140 }
4241 }
4342
44- @JvmDefault
4543 fun add (other : LongWrapper ): LongWrapper {
4644 return object : LongWrapper {
4745 override fun get (): Long = this @LongWrapper.get() + other.get()
You can’t perform that action at this time.
0 commit comments