Relocate @JvmDefault to stdlib module

This commit is contained in:
Mikhael Bogdanov
2018-03-29 16:51:10 +02:00
parent 38f8924ae3
commit 89f22e69b4
3 changed files with 21 additions and 20 deletions
@@ -0,0 +1,20 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
@file:JvmVersion
package kotlin.jvm
import kotlin.internal.RequireKotlin
import kotlin.internal.RequireKotlinVersionKind
/**
* Specifies that a JVM default method should be generated for non-abstract Kotlin interface member.
* This annotation requires explicit compilation flag to be enabled: `-Xenable-jvm-default`.
* Adding annotation is binary incompatible change.
*/
@SinceKotlin("1.2")
@RequireKotlin("1.2.40", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
annotation class JvmDefault