Fix annotation deserialization on suspend functions

Use proper initial/frontend version of suspend descriptor
when writing METHOD_FOR_FUNCTION, because serializer uses this version

Also this commit contains adjustments of neighboring code to the describe
change

 #KT-16093 Fixed
This commit is contained in:
Denis Zharkov
2017-02-03 16:44:16 +03:00
parent 2516583ecf
commit 2d88419c38
10 changed files with 83 additions and 8 deletions
@@ -0,0 +1,5 @@
//ALLOW_AST_ACCESS
package test
annotation class Anno(val t: String)
@Anno("foo") suspend fun foo() {}
@@ -0,0 +1,9 @@
package test
@test.Anno(t = "foo") public suspend fun foo(): kotlin.Unit
public final annotation class Anno : kotlin.Annotation {
/*primary*/ public constructor Anno(/*0*/ t: kotlin.String)
public final val t: kotlin.String
public final fun <get-t>(): kotlin.String
}