[K2] Support serialization of complex annotations
#KT-57611 Fixed
This commit is contained in:
Vendored
+13
@@ -50,6 +50,19 @@ enum class SomeEnum {
|
||||
B;
|
||||
}
|
||||
|
||||
// TODO: can be uncommented after fix KT-57135
|
||||
//@field:BinaryAnnotation("Str" + "ing")
|
||||
//var x: Int = 5
|
||||
|
||||
//object Delegate {
|
||||
// operator fun getValue(instance: Any?, property: Any) : String = ""
|
||||
// operator fun setValue(instance: Any?, property: Any, value: String) {}
|
||||
//}
|
||||
//
|
||||
//@delegate:BinaryAnnotation("Str" + "ing")
|
||||
//val p: String by Delegate
|
||||
|
||||
|
||||
// 7. VALUE_PARAMETER
|
||||
fun @receiver:BinaryAnnotation("Str" + "ing") String.myExtension() { }
|
||||
fun foo(@BinaryAnnotation("Str" + "ing") a: Int) { }
|
||||
|
||||
Reference in New Issue
Block a user