Fix tests

This commit is contained in:
Yan Zhulanow
2015-08-06 18:59:37 +03:00
parent 552211b2f4
commit 2ce9903356
84 changed files with 221 additions and 195 deletions
@@ -4,6 +4,6 @@ annotation class Anno
class Class {
companion object {
@[Anno] var property: Int = 42
@field:Anno var property: Int = 42
}
}
@@ -9,7 +9,7 @@ internal final class Class {
public companion object Companion {
/*primary*/ private constructor Companion()
test.Anno() internal final var property: kotlin.Int
@field:test.Anno() internal final var property: kotlin.Int
internal final fun <get-property>(): kotlin.Int
internal final fun <set-property>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
}
@@ -8,5 +8,5 @@ annotation class Anno(val t: ElementType)
class Class {
Anno(ElementType.METHOD) fun foo() {}
Anno(ElementType.FIELD) var bar = 42
@field:Anno(ElementType.FIELD) var bar = 42
}
@@ -8,7 +8,7 @@ kotlin.annotation.annotation() internal final class Anno : kotlin.Annotation {
internal final class Class {
/*primary*/ public constructor Class()
test.Anno(t = ElementType.FIELD) internal final var bar: kotlin.Int
@field:test.Anno(t = ElementType.FIELD) internal final var bar: kotlin.Int
internal final fun <get-bar>(): kotlin.Int
internal final fun <set-bar>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
test.Anno(t = ElementType.METHOD) internal final fun foo(): kotlin.Unit
@@ -3,5 +3,5 @@ package test
annotation class Anno
class Class {
@[Anno] var property: Int = 42
@field:Anno var property: Int = 42
}
@@ -6,7 +6,7 @@ kotlin.annotation.annotation() internal final class Anno : kotlin.Annotation {
internal final class Class {
/*primary*/ public constructor Class()
test.Anno() internal final var property: kotlin.Int
@field:test.Anno() internal final var property: kotlin.Int
internal final fun <get-property>(): kotlin.Int
internal final fun <set-property>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
}
@@ -7,4 +7,4 @@ annotation class Anno(val t: ElementType)
Anno(ElementType.METHOD) fun foo() {}
Anno(ElementType.FIELD) val bar = 42
@field:Anno(ElementType.FIELD) val bar = 42
@@ -1,6 +1,6 @@
package test
test.Anno(t = ElementType.FIELD) internal val bar: kotlin.Int = 42
@field:test.Anno(t = ElementType.FIELD) internal val bar: kotlin.Int = 42
internal fun <get-bar>(): kotlin.Int
test.Anno(t = ElementType.METHOD) internal fun foo(): kotlin.Unit
@@ -7,6 +7,6 @@ annotation class Anno(vararg val t: ElementType)
Anno(ElementType.METHOD, ElementType.FIELD) fun foo() {}
Anno(ElementType.PACKAGE) val bar = 42
@field:Anno(ElementType.PACKAGE) val bar = 42
Anno() fun baz() {}
@@ -1,6 +1,6 @@
package test
test.Anno(t = {ElementType.PACKAGE}) internal val bar: kotlin.Int = 42
@field:test.Anno(t = {ElementType.PACKAGE}) internal val bar: kotlin.Int = 42
internal fun <get-bar>(): kotlin.Int
test.Anno(t = {}) internal fun baz(): kotlin.Unit
test.Anno(t = {ElementType.METHOD, ElementType.FIELD}) internal fun foo(): kotlin.Unit
@@ -2,4 +2,4 @@ package test
annotation class Anno
@[Anno] var property: Int = 42
@field:Anno var property: Int = 42
@@ -1,6 +1,6 @@
package test
test.Anno() internal var property: kotlin.Int
@field:test.Anno() internal var property: kotlin.Int
internal fun <get-property>(): kotlin.Int
internal fun <set-property>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
@@ -5,6 +5,6 @@ annotation class Anno(vararg val t: String)
Anno("live", "long") fun foo() {}
Anno("prosper") val bar = 42
@field:Anno("prosper") val bar = 42
Anno() fun baz() {}
@@ -1,6 +1,6 @@
package test
test.Anno(t = {"prosper"}) internal val bar: kotlin.Int = 42
@field:test.Anno(t = {"prosper"}) internal val bar: kotlin.Int = 42
internal fun <get-bar>(): kotlin.Int
test.Anno(t = {}) internal fun baz(): kotlin.Unit
test.Anno(t = {"live", "long"}) internal fun foo(): kotlin.Unit
@@ -10,6 +10,6 @@ kotlin.annotation.annotation() internal final class B : kotlin.Annotation {
internal final class Class {
/*primary*/ public constructor Class(/*0*/ test.A() x: kotlin.Int, /*1*/ test.B() y: kotlin.String)
test.A() internal final val x: kotlin.Int
internal final val x: kotlin.Int
internal final fun <get-x>(): kotlin.Int
}
@@ -10,9 +10,9 @@ kotlin.annotation.annotation() internal final class B : kotlin.Annotation {
internal final enum class E : kotlin.Enum<test.E> {
/*primary*/ private constructor E(/*0*/ test.A() x: kotlin.String, /*1*/ test.B() y: kotlin.Int)
test.A() internal final val x: kotlin.String
internal final val x: kotlin.String
internal final fun <get-x>(): kotlin.String
test.B() internal final val y: kotlin.Int
internal final val y: kotlin.Int
internal final fun <get-y>(): kotlin.Int
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.E): kotlin.Int
@@ -11,13 +11,13 @@ internal final class Outer {
internal final inner class Inner {
/*primary*/ public constructor Inner(/*0*/ test.A(s = "inner") y: kotlin.String)
test.A(s = "inner") internal final val y: kotlin.String
internal final val y: kotlin.String
internal final fun <get-y>(): kotlin.String
}
internal final class Nested {
/*primary*/ public constructor Nested(/*0*/ test.A(s = "nested") x: kotlin.String)
test.A(s = "nested") internal final val x: kotlin.String
internal final val x: kotlin.String
internal final fun <get-x>(): kotlin.String
}
}
@@ -10,3 +10,4 @@ internal final class Class {
internal final fun <get-property>(): kotlin.Int
internal final fun <set-property>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
}
@@ -1,7 +0,0 @@
package test
annotation class Anno
class Class {
@Anno var property: Int = 42
}
@@ -1,12 +0,0 @@
package test
kotlin.annotation.annotation() internal final class Anno : kotlin.Annotation {
/*primary*/ public constructor Anno()
}
internal final class Class {
/*primary*/ public constructor Class()
test.Anno() internal final var property: kotlin.Int
internal final fun <get-property>(): kotlin.Int
internal final fun <set-property>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
}
@@ -8,7 +8,7 @@ annotation class A(val s: String)
A("1")
fun foo() = "foo"
A("2")
@field:A("2")
var v: Int = 1
@platformName("vget")
@A("3")
@@ -1,6 +1,6 @@
package test
test.A(s = "2") internal var v: kotlin.Int
@field:test.A(s = "2") internal var v: kotlin.Int
kotlin.platform.platformName(name = "vget") test.A(s = "3") internal fun <get-v>(): kotlin.Int
kotlin.platform.platformName(name = "vset") test.A(s = "4") internal fun <set-v>(/*0*/ <set-?>: kotlin.Int): kotlin.Unit
kotlin.platform.platformName(name = "bar") test.A(s = "1") internal fun foo(): kotlin.String