KotlinInvalidBundleOrPropertyInspection: fix false positive for a bundle with several properties files
#KT-31359 Fixed
This commit is contained in:
@@ -3,4 +3,5 @@ import org.jetbrains.annotations.PropertyKey
|
||||
object K {
|
||||
fun message(@PropertyKey(resourceBundle = "TestBundle") key: String, vararg args: Any) = key
|
||||
fun message2(@PropertyKey(resourceBundle = "TestBundle") key: String, n: Int, vararg args: Any) = key
|
||||
fun message3(@PropertyKey(resourceBundle = "lang") key: String) = key
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
test=de
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
test=en
|
||||
tests=eee
|
||||
Vendored
+1
@@ -3,4 +3,5 @@ fun test() {
|
||||
K.message("foo.baz")
|
||||
J.message("foo.baz", "arg")
|
||||
J.message("foo.baz")
|
||||
K.message3("www")
|
||||
}
|
||||
+2
@@ -3,4 +3,6 @@ fun test() {
|
||||
K.message("foo.bar", "arg1", "arg2")
|
||||
J.message("foo.bar", "arg")
|
||||
J.message("foo.bar", "arg1", "arg2")
|
||||
K.message3("test")
|
||||
K.message3("tests")
|
||||
}
|
||||
Reference in New Issue
Block a user