Uast: handling annotations on the property receiver (KT-40539)

This commit is contained in:
Nicolay Mitropolsky
2020-07-27 21:46:38 +03:00
parent 325ad56dcd
commit c254651ed3
5 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ public final class ReceiverFunKt {
public static final fun foo(@MyReceiverAnnotation @org.jetbrains.annotations.NotNull $this$foo: java.lang.String) : int {
return this.length
}
public static final fun getRx(@org.jetbrains.annotations.NotNull $this$rx: java.lang.String) : kotlin.text.Regex {
public static final fun getRx(@MyReceiverAnnotation(name = "RegExp") @org.jetbrains.annotations.NotNull $this$rx: java.lang.String) : kotlin.text.Regex {
return toRegex()
}
}