mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Tests for annotation deserialization when platform names are used
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package test
|
||||
|
||||
import kotlin.platform.*
|
||||
|
||||
annotation class A(val s: String)
|
||||
|
||||
[platformName("bar")]
|
||||
A("1")
|
||||
fun foo() = "foo"
|
||||
|
||||
A("2")
|
||||
var v: Int = 1
|
||||
[platformName("vget")]
|
||||
[A("3")]
|
||||
get
|
||||
[platformName("vset")]
|
||||
[A("4")]
|
||||
set
|
||||
Reference in New Issue
Block a user