Tests for annotation deserialization when platform names are used

This commit is contained in:
Andrey Breslav
2014-06-10 18:15:46 +04:00
parent 705a081919
commit fe09bd4fd8
5 changed files with 71 additions and 3 deletions

View File

@@ -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