Relocate @JvmDefault to stdlib module
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user