Skip to content

Commit 1d70b58

Browse files
author
Michael Bogdanov
committed
Fixed test data
1 parent 1126833 commit 1d70b58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

idea/testData/checker/PlatformStaticUsagesRuntime.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ class A {
1818

1919
fun test() {
2020
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 fun a3()</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 fun a3()</error> {
2222

2323
}
2424
}
2525
}
2626

27-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic fun a4()</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 fun a4()</error> {
2828

2929
}
3030
}
3131

3232
<error descr="[WRONG_ANNOTATION_TARGET] This annotation is not applicable to target 'interface'">@JvmStatic</error>
3333
interface B {
3434
companion object {
35-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic fun a1()</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 fun a1()</error> {
3636

3737
}
3838
}
@@ -45,13 +45,13 @@ interface B {
4545

4646
fun test() {
4747
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 fun a3()</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 fun a3()</error> {
4949

5050
}
5151
}
5252
}
5353

54-
<error descr="[JVM_STATIC_NOT_IN_OBJECT] Only functions in named objects and companion objects of classes can be annotated with 'JvmStatic'">@JvmStatic fun a4()</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 fun a4()</error> {
5555

5656
}
5757
}

0 commit comments

Comments
 (0)