Deprecate JVM platform annotations in favor of capitilized themselves

This commit is contained in:
Denis Zharkov
2015-09-04 14:46:46 +03:00
parent 5471a1d18a
commit 952d45dc8b
107 changed files with 290 additions and 266 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
package pack
class C jvmOverloads constructor(arg1: Int, arg2: Int = 0, arg3: Int = 0)
class C JvmOverloads constructor(arg1: Int, arg2: Int = 0, arg3: Int = 0)
public object User {
public fun main() {
@@ -1 +1 @@
class C jvmOverloads constructor(private val string: String, a: Int = string.length())
class C JvmOverloads constructor(private val string: String, a: Int = string.length())
@@ -1,4 +1,4 @@
class A jvmOverloads constructor(nested: A.Nested = A.Nested(A.Nested.FIELD)) {
class A JvmOverloads constructor(nested: A.Nested = A.Nested(A.Nested.FIELD)) {
class Nested(p: Int) {
companion object {
@@ -1,7 +1,7 @@
// ERROR: Property must be initialized or be abstract
import A.Nested
class A jvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)) {
class A JvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)) {
class Nested(p: Int) {
companion object {
@@ -3,7 +3,7 @@ package pack
import pack.A.Nested
class A jvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)) {
class A JvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)) {
class Nested(p: Int) {
companion object {
@@ -3,7 +3,7 @@ package pack
import pack.A.*
class A jvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)) {
class A JvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)) {
class Nested(p: Int) {
companion object {
@@ -1,6 +1,6 @@
package pack
class C jvmOverloads constructor(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0) {
class C JvmOverloads constructor(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0) {
constructor(a: Int) : this(a, 0, 0, 0, 1) {
}
@@ -1,6 +1,6 @@
package pack
class C jvmOverloads constructor(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0) {
class C JvmOverloads constructor(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0) {
constructor(a1: Int, b1: Int, c1: Int) : this(a1, b1, c1, 0, 0) {
}
@@ -1,6 +1,6 @@
package pack
class C jvmOverloads constructor(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0) {
class C JvmOverloads constructor(a: Int = 0, b: Int = 0, c: Int = 0, d: Int = 0, e: Int = 0) {
constructor(a: Int, b: Int, c: Int) : this(b, a, c, 0, 0) {
}
@@ -1,3 +1,3 @@
package pack
class C jvmOverloads constructor(a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4, e: Int = 5)
class C JvmOverloads constructor(a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4, e: Int = 5)
@@ -1,3 +1,3 @@
package pack
class C jvmOverloads constructor(a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4, e: Int = 5)
class C JvmOverloads constructor(a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4, e: Int = 5)
@@ -1,4 +1,4 @@
class C jvmOverloads constructor(arg1: Int, arg2: Int = 0, arg3: Int = 0) {
class C JvmOverloads constructor(arg1: Int, arg2: Int = 0, arg3: Int = 0) {
private val field: Int
init {
@@ -7,7 +7,7 @@ class A {
public constructor() {
}
jvmOverloads public constructor(p: Int, s: String, x: Int = 1) {
JvmOverloads public constructor(p: Int, s: String, x: Int = 1) {
this.s = s
this.x = x
}
@@ -4,7 +4,7 @@ class A() {
private val s = ""
private val x = 0
jvmOverloads public constructor(p: Int, s: String, x: Int = 1) : this() {
JvmOverloads public constructor(p: Int, s: String, x: Int = 1) : this() {
this.s = s
this.x = x
}