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
+12
View File
@@ -0,0 +1,12 @@
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$getRx: java.lang.String) : kotlin.text.Regex {
return toRegex()
}
}
public abstract annotation MyReceiverAnnotation {
public abstract fun name() : java.lang.String = UastEmptyExpression
}