Fix testJvmStaticUsagesRuntime from PSI checker, messages updated to 1.3
This commit is contained in:
+5
-5
@@ -17,13 +17,13 @@ class A {
|
|||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val <warning descr="[UNUSED_VARIABLE] Variable 's' is never used">s</warning> = object {
|
val <warning descr="[UNUSED_VARIABLE] Variable 's' is never used">s</warning> = object {
|
||||||
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION] Only members in named objects and companion objects of classes can be annotated with '@JvmStatic'">@JvmStatic fun a3()</error> {
|
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_COMPANION] Only members in named objects and companion objects can be annotated with '@JvmStatic'">@JvmStatic fun a3()</error> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION] Only members in named objects and companion objects of classes can be annotated with '@JvmStatic'">@JvmStatic fun a4()</error> {
|
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_COMPANION] Only members in named objects and companion objects can be annotated with '@JvmStatic'">@JvmStatic fun a4()</error> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ class A {
|
|||||||
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'interface'">@JvmStatic</error>
|
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'interface'">@JvmStatic</error>
|
||||||
interface B {
|
interface B {
|
||||||
companion object {
|
companion object {
|
||||||
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION] Only members in named objects and companion objects of classes can be annotated with '@JvmStatic'">@JvmStatic fun a1()</error> {
|
<error descr="[JVM_STATIC_IN_INTERFACE_1_6] '@JvmStatic' annotation in interface supported only with JVM target 1.8 and above. Recompile with '-jvm-target 1.8'\"">@JvmStatic fun a1()</error> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -44,13 +44,13 @@ interface B {
|
|||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
val <warning descr="[UNUSED_VARIABLE] Variable 's' is never used">s</warning> = object {
|
val <warning descr="[UNUSED_VARIABLE] Variable 's' is never used">s</warning> = object {
|
||||||
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION] Only members in named objects and companion objects of classes can be annotated with '@JvmStatic'">@JvmStatic fun a3()</error> {
|
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_COMPANION] Only members in named objects and companion objects can be annotated with '@JvmStatic'">@JvmStatic fun a3()</error> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION] Only members in named objects and companion objects of classes can be annotated with '@JvmStatic'">@JvmStatic fun a4()</error> {
|
<error descr="[JVM_STATIC_NOT_IN_OBJECT_OR_COMPANION] Only members in named objects and companion objects can be annotated with '@JvmStatic'">@JvmStatic fun a4()</error> {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user