Do not invalidate package caches on generic events, KT-25264
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
package org.jetbrains.annotations
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FIELD)
|
||||
public annotation class PropertyKey(public val resourceBundle: String)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
foobar = 0
|
||||
foo.bar = 1
|
||||
bar.baz = 2
|
||||
@@ -0,0 +1,10 @@
|
||||
import org.jetbrains.annotations.PropertyKey
|
||||
|
||||
fun message(@PropertyKey(resourceBundle = "MessageBundle1.dependency") key: String) = key
|
||||
|
||||
fun test() {
|
||||
message("<caret>")
|
||||
}
|
||||
|
||||
// ELEMENT: foo.bar
|
||||
// CHARS: 'foo\n'
|
||||
@@ -0,0 +1,10 @@
|
||||
import org.jetbrains.annotations.PropertyKey
|
||||
|
||||
fun message(@PropertyKey(resourceBundle = "MessageBundle1.dependency") key: String) = key
|
||||
|
||||
fun test() {
|
||||
message("foo.bar")
|
||||
}
|
||||
|
||||
// ELEMENT: foo.bar
|
||||
// CHARS: 'foo\n'
|
||||
Reference in New Issue
Block a user