[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
// !DIAGNOSTICS:-UNUSED_VARIABLE
|
||||
// FILE: JavaClass.java
|
||||
|
||||
public class JavaClass {
|
||||
public static final String publicFinal;
|
||||
public static volatile Object publicMutable;
|
||||
|
||||
protected static final double protectedFinal;
|
||||
protected static char protectedMutable;
|
||||
|
||||
private static final JavaClass privateFinal;
|
||||
private static Throwable privateMutable;
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
import JavaClass.*
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
fun test() {
|
||||
val pubFinRef: KProperty0<String> = ::publicFinal
|
||||
val pubMutRef: KMutableProperty0<Any?> = ::publicMutable
|
||||
val protFinRef: KProperty<Double> = ::protectedFinal
|
||||
val protMutRef: KMutableProperty<Char> = ::protectedMutable
|
||||
val privFinRef: KProperty<JavaClass?> = ::privateFinal
|
||||
val privMutRef: KMutableProperty<Throwable?> = ::privateMutable
|
||||
}
|
||||
Reference in New Issue
Block a user