129de76288
but not for value classes. Since inline classes and value classes share the same flag, we use presence of the annotation to distinguish them.
22 lines
385 B
Kotlin
Vendored
22 lines
385 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +InlineClasses
|
|
|
|
package kotlin.jvm
|
|
|
|
annotation class JvmInline
|
|
|
|
@JvmInline
|
|
value class Name(val name: String)
|
|
@JvmInline
|
|
value class Password(val password: String)
|
|
|
|
interface NameVerifier {
|
|
fun verify(name: Name)
|
|
}
|
|
|
|
interface PasswordVerifier {
|
|
fun verify(password: Password)
|
|
}
|
|
|
|
interface NameAndPasswordVerifier : NameVerifier, PasswordVerifier
|