Fixed broken testdata.

This commit is contained in:
Alexander.Podkhalyuzin
2012-05-23 15:57:56 +04:00
parent 59b533ccd3
commit b5b9f7ba98
56 changed files with 65 additions and 65 deletions
@@ -6,11 +6,11 @@ open class Base<A, B, C>() {
class C : Base<String, C, Unit>() { class C : Base<String, C, Unit>() {
override fun bar(value : () -> Unit) : (String) -> Unit { override fun bar(value: () -> Unit): (String) -> Unit {
return super<Base>.bar(value) return super<Base>.bar(value)
} }
override fun foo(value : C) : C { override fun foo(value: C): C {
return super<Base>.foo(value) return super<Base>.foo(value)
} }
override val method : (String?) -> String = ? override val method: (String?) -> String = ?
} }
@@ -5,7 +5,7 @@ trait T {
class C : T { class C : T {
override fun Foo() : (String) -> Unit { override fun Foo(): (String) -> Unit {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -5,6 +5,6 @@ trait A {
fun some() : A { fun some() : A {
return object : A { return object : A {
override val method : () -> Unit? = ? override val method: () -> Unit? = ?
} }
} }
@@ -11,10 +11,10 @@ class SomeOther<S> : Some<S> {
override fun someFoo() { override fun someFoo() {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
override fun someGenericFoo() : S { override fun someGenericFoo(): S {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
override fun someOtherFoo() : Int { override fun someOtherFoo(): Int {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -4,7 +4,7 @@ trait G<T> {
class GC() : G<Int> { class GC() : G<Int> {
override fun foo(t : Int) : Int { override fun foo(t: Int): Int {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -15,13 +15,13 @@ class C : A(), B {
override fun internalFun() { override fun internalFun() {
super<A>.internalFun() super<A>.internalFun()
} }
override val internalProperty : Int = 0 override val internalProperty: Int = 0
protected override fun protectedFun() { protected override fun protectedFun() {
super<A>.protectedFun() super<A>.protectedFun()
} }
protected override val protectedProperty : Int = 0 protected override val protectedProperty: Int = 0
public override fun publicFun() { public override fun publicFun() {
super<A>.publicFun() super<A>.publicFun()
} }
public override val publicProperty : Int = 0 public override val publicProperty: Int = 0
} }
@@ -2,7 +2,7 @@ import foo.Intf
class Impl(): Intf { class Impl(): Intf {
public override fun getFooBar() : String? { public override fun getFooBar(): String? {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -2,7 +2,7 @@ import foo.Intf
class Impl(): Intf { class Impl(): Intf {
public override fun fooBar(i : Int, s : Array<String?>?, foo : Any?) { public override fun fooBar(i: Int, s: Array<String?>?, foo: Any?) {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -5,10 +5,10 @@ trait A {
class C : A { class C : A {
override fun bar() : String { override fun bar(): String {
return super<A>.bar() return super<A>.bar()
} }
override fun foo(value : String) : Int { override fun foo(value: String): Int {
return super<A>.foo(value) return super<A>.foo(value)
} }
} }
@@ -4,5 +4,5 @@ trait A {
class B : A { class B : A {
override val String.prop : Int = 0 override val String.prop: Int = 0
} }
@@ -4,6 +4,6 @@ open class A() {
fun some() : A { fun some() : A {
return object : A() { return object : A() {
override val method : () -> Unit? = ? override val method: () -> Unit? = ?
} }
} }
@@ -4,7 +4,7 @@ trait A<T> {
class C : A<C> { class C : A<C> {
override fun foo(value : C) { override fun foo(value: C) {
super<A>.foo(value) super<A>.foo(value)
} }
} }
@@ -2,7 +2,7 @@ import foo.A
class C : A() { class C : A() {
public override fun getAnswer(array : Array<String?>?, number : Int, value : Any?) : Int { public override fun getAnswer(array: Array<String?>?, number: Int, value: Any?): Int {
return super<A>.getAnswer(array, number, value) return super<A>.getAnswer(array, number, value)
} }
} }
@@ -4,7 +4,7 @@ trait A {
class C : A { class C : A {
override fun foo(value : String) : Int { override fun foo(value: String): Int {
return super<A>.foo(value) return super<A>.foo(value)
} }
} }
@@ -6,8 +6,8 @@ open class A() {
class C : A() { class C : A() {
val constant = 42 val constant = 42
// Some comment // Some comment
override val bar : Int = 0 override val bar: Int = 0
override fun foo(value : Int) { override fun foo(value: Int) {
super<A>.foo(value) super<A>.foo(value)
} }
@@ -4,7 +4,7 @@ trait A {
class C : A { class C : A {
override fun foo(value : String) { override fun foo(value: String) {
super<A>.foo(value) super<A>.foo(value)
} }
} }
@@ -4,5 +4,5 @@ trait T {
class GC() : T { class GC() : T {
override val v : Int = 0 override val v: Int = 0
} }
@@ -8,7 +8,7 @@ class SomeTest : Test {
public override fun test() { public override fun test() {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
protected override val testProp : Int = 0 protected override val testProp: Int = 0
/** /**
* test * test
@@ -3,7 +3,7 @@ import lib.ArrayFactory
public class Impl : ArrayFactory { public class Impl : ArrayFactory {
override fun create() : lib.Array { override fun create(): lib.Array {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -4,7 +4,7 @@ trait G<T> {
class GC<T>() : G<T> { class GC<T>() : G<T> {
override fun foo(t : T) : T { override fun foo(t: T): T {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -4,7 +4,7 @@ trait Some {
class SomeOther : Some { class SomeOther : Some {
override fun foo(some : Int?) : Int { override fun foo(some: Int?): Int {
throw UnsupportedOperationException() throw UnsupportedOperationException()
} }
} }
@@ -1,6 +1,6 @@
class Some { class Some {
fun some() { fun some() {
var int : Int = 0 var int: Int = 0
int = 12 int = 12
int += 12 int += 12
+1 -1
View File
@@ -1,3 +1,3 @@
class Some() { class Some() {
val a : Int val a: Int
} }
@@ -1,3 +1,3 @@
fun test(a : Int, fun test(a: Int,
b : Int) { b: Int) {
} }
@@ -1,5 +1,5 @@
class Test { class Test {
var test : Int var test: Int
get () { get () {
return 0 return 0
} }
@@ -1,6 +1,6 @@
class Some { class Some {
fun some() { fun some() {
var int : Int=0 var int: Int=0
int=12 int=12
int+=12 int+=12
@@ -1,5 +1,5 @@
class Test { class Test {
fun someLong(a : Int fun someLong(a: Int
) { ) {
} }
} }
@@ -1,5 +1,5 @@
class Test { class Test {
fun someLong(a : Int fun someLong(a: Int
) { ) {
} }
} }
@@ -1,4 +1,4 @@
fun some(x : Any) { fun some(x: Any) {
when (x) { when (x) {
is Int -> is Int ->
0 0
+1 -1
View File
@@ -1,4 +1,4 @@
fun some(x : Any) { fun some(x: Any) {
when (x) { when (x) {
is Int -> 0 is Int -> 0
else -> 1 else -> 1
@@ -4,4 +4,4 @@ import java.util.Map
fun getEntry() : java.util.Map.Entry<jet.Array<String>, java.sql.Array> { fun getEntry() : java.util.Map.Entry<jet.Array<String>, java.sql.Array> {
} }
val x : Map.Entry<Array<String>, java.sql.Array> = getEntry() val x: Map.Entry<Array<String>, java.sql.Array> = getEntry()
@@ -1,2 +1,2 @@
// "Specify Type Explicitly" "true" // "Specify Type Explicitly" "true"
val x : (Int) -> String = { (a: Int) -> ""} val x: (Int) -> String = { (a: Int) -> ""}
@@ -1,4 +1,4 @@
// "Specify Type Explicitly" "true" // "Specify Type Explicitly" "true"
class String {} class String {}
val x : jet.String = "" val x: jet.String = ""
@@ -1,2 +1,2 @@
// "Specify Type Explicitly" "true" // "Specify Type Explicitly" "true"
val x : Unit = #() val x: Unit = #()
@@ -1,4 +1,4 @@
// "Remove initializer from property" "true" // "Remove initializer from property" "true"
abstract class A { abstract class A {
abstract var i<caret> : Int abstract var i: Int
} }
@@ -1,4 +1,4 @@
// "Remove initializer from property" "true" // "Remove initializer from property" "true"
abstract class A { abstract class A {
abstract var i<caret> : Int abstract var i<caret>: Int
} }
@@ -1,4 +1,4 @@
// "Remove getter and initializer from property" "true" // "Remove getter and initializer from property" "true"
abstract class B { abstract class B {
abstract val i<caret> : Int abstract val i<caret>: Int
} }
@@ -2,5 +2,5 @@
package a package a
class A() { class A() {
internal protected fun foo() : Int = 1 internal protected fun foo(): Int = 1
} }
@@ -2,5 +2,5 @@
package a package a
class A() { class A() {
protected fun <caret>foo() : Int = 1 protected fun <caret>foo(): Int = 1
} }
@@ -2,5 +2,5 @@
package a package a
class A() { class A() {
public fun <caret>foo() : String = "a" public fun <caret>foo(): String = "a"
} }
@@ -3,4 +3,4 @@ package a
import java.util.List import java.util.List
public val <caret>l : List<Int>? = java.util.Collections.emptyList<Int>() public val <caret>l: List<Int>? = java.util.Collections.emptyList<Int>()
@@ -9,7 +9,7 @@ import java.util.List
class M { class M {
trait A { trait A {
val l<caret> : List<Int>? val l<caret>: List<Int>?
} }
} }
} }
@@ -5,5 +5,5 @@ package a
import b.B import b.B
class A() { class A() {
public val <caret>a : B = b.foo() public val <caret>a: B = b.foo()
} }
@@ -3,5 +3,5 @@
class A() {} class A() {}
class B() { class B() {
public val <caret>a : A = A() public val <caret>a: A = A()
} }
@@ -3,6 +3,6 @@ package a
class M { class M {
trait A { trait A {
abstract val e<caret> : Exception abstract val e<caret>: Exception
} }
} }
@@ -3,6 +3,6 @@ package a
class M { class M {
trait A { trait A {
abstract val i<caret> : Int abstract val i<caret>: Int
} }
} }
@@ -6,6 +6,6 @@ import java.util.List
class M { class M {
trait A { trait A {
abstract val l<caret> : List<Int>? abstract val l<caret>: List<Int>?
} }
} }
@@ -1,6 +1,6 @@
// "Make variable mutable" "true" // "Make variable mutable" "true"
class A() { class A() {
var a : Int = 0 var a: Int = 0
set(v : Int) { set(v: Int) {
} }
} }
+1 -1
View File
@@ -1,3 +1,3 @@
fun Int.foo(arg : Int) : Unit { fun Int.foo(arg: Int): Unit {
<caret> <caret>
} }
+1 -1
View File
@@ -1,4 +1,4 @@
val Int.v : Int val Int.v: Int
get() { get() {
<caret> <caret>
} }
+1 -1
View File
@@ -1,4 +1,4 @@
var Int.v : Int var Int.v: Int
get() { get() {
<caret> <caret>
} }
+1 -1
View File
@@ -1,3 +1,3 @@
fun foo() : Unit { fun foo(): Unit {
<caret> <caret>
} }
+1 -1
View File
@@ -1,3 +1,3 @@
fun foo(x : Any) : Unit { fun foo(x: Any): Unit {
<caret> <caret>
} }
+1 -1
View File
@@ -1,3 +1,3 @@
fun foo(x : Any, y : Any) : Unit { fun foo(x: Any, y: Any): Unit {
<caret> <caret>
} }
+1 -1
View File
@@ -1,3 +1,3 @@
fun main(args : Array<String>) { fun main(args: Array<String>) {
<caret> <caret>
} }
+1 -1
View File
@@ -1,3 +1,3 @@
fun foo(x : Int) { fun foo(x: Int) {
<caret> <caret>
} }