Uast: don't throw exception if can't get a receiver parameter for annotation (KT-40494)

This commit is contained in:
Nicolay Mitropolsky
2020-07-22 19:26:54 +03:00
parent 7872b21914
commit f7031e65ba
6 changed files with 55 additions and 4 deletions
+4
View File
@@ -2,7 +2,11 @@ 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 {
return toRegex()
}
}
public abstract annotation MyReceiverAnnotation {
public abstract fun name() : java.lang.String = UastEmptyExpression
}