b44dc55109
There was a refactoring of AbstractDiagnosticsTest in 9052ef06 which
contains bug that `setupEnvironment` for AbstractDiagnosticsTestUsingJavac
was not called, so for last year tests `UsingJavac` had no difference
with usual diagnostics tests which causes some contradictions in test data
41 lines
581 B
Kotlin
Vendored
41 lines
581 B
Kotlin
Vendored
// !SKIP_JAVAC
|
|
// !LANGUAGE: +InlineClasses
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
package kotlin.jvm
|
|
|
|
annotation class JvmInline
|
|
|
|
interface A {
|
|
val goodSize: Int
|
|
}
|
|
|
|
interface B {
|
|
val badSize: Int
|
|
}
|
|
|
|
@JvmInline
|
|
value class Foo(val x: Int) : A, B {
|
|
val a0
|
|
get() = 0
|
|
|
|
val a1 = 0
|
|
|
|
var a2: Int
|
|
get() = 1
|
|
set(value) {}
|
|
|
|
var a3: Int = 0
|
|
get() = 1
|
|
set(value) {
|
|
field = value
|
|
}
|
|
|
|
override val goodSize: Int
|
|
get() = 0
|
|
|
|
override val badSize: Int = 0
|
|
|
|
lateinit var lateinitProperty: String
|
|
}
|