You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: idea/testData/checker/PlatformStaticUsagesRuntime.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,21 +18,21 @@ class A {
18
18
19
19
funtest() {
20
20
val<warning descr="[UNUSED_VARIABLE] Variable 's' is never used">s</warning>=object {
21
-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic funa3()</error> {
21
+
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with ''@JvmStatic''">@JvmStatic funa3()</error> {
22
22
23
23
}
24
24
}
25
25
}
26
26
27
-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic funa4()</error> {
27
+
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with ''@JvmStatic''">@JvmStatic funa4()</error> {
28
28
29
29
}
30
30
}
31
31
32
32
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'interface'">@JvmStatic</error>
33
33
interfaceB {
34
34
companionobject {
35
-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic funa1()</error> {
35
+
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with ''@JvmStatic''">@JvmStatic funa1()</error> {
36
36
37
37
}
38
38
}
@@ -45,13 +45,13 @@ interface B {
45
45
46
46
funtest() {
47
47
val<warning descr="[UNUSED_VARIABLE] Variable 's' is never used">s</warning>=object {
48
-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic funa3()</error> {
48
+
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with ''@JvmStatic''">@JvmStatic funa3()</error> {
49
49
50
50
}
51
51
}
52
52
}
53
53
54
-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic funa4()</error> {
54
+
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with ''@JvmStatic''">@JvmStatic funa4()</error> {
0 commit comments