提交 b5b9f7ba 编写于 作者: A Alexander.Podkhalyuzin

Fixed broken testdata.

上级 59b533cc
......@@ -6,11 +6,11 @@ open class Base<A, B, C>() {
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)
}
override fun foo(value : C) : C {
override fun foo(value: C): C {
return super<Base>.foo(value)
}
override val method : (String?) -> String = ?
override val method: (String?) -> String = ?
}
......@@ -5,7 +5,7 @@ trait T {
class C : T {
override fun Foo() : (String) -> Unit {
override fun Foo(): (String) -> Unit {
throw UnsupportedOperationException()
}
}
\ No newline at end of file
......@@ -5,6 +5,6 @@ trait A {
fun some() : A {
return object : A {
override val method : () -> Unit? = ?
override val method: () -> Unit? = ?
}
}
......@@ -11,10 +11,10 @@ class SomeOther<S> : Some<S> {
override fun someFoo() {
throw UnsupportedOperationException()
}
override fun someGenericFoo() : S {
override fun someGenericFoo(): S {
throw UnsupportedOperationException()
}
override fun someOtherFoo() : Int {
override fun someOtherFoo(): Int {
throw UnsupportedOperationException()
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ trait G<T> {
class GC() : G<Int> {
override fun foo(t : Int) : Int {
override fun foo(t: Int): Int {
throw UnsupportedOperationException()
}
}
......@@ -15,13 +15,13 @@ class C : A(), B {
override fun internalFun() {
super<A>.internalFun()
}
override val internalProperty : Int = 0
override val internalProperty: Int = 0
protected override fun protectedFun() {
super<A>.protectedFun()
}
protected override val protectedProperty : Int = 0
protected override val protectedProperty: Int = 0
public override fun 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 {
public override fun getFooBar() : String? {
public override fun getFooBar(): String? {
throw UnsupportedOperationException()
}
}
......@@ -2,7 +2,7 @@ import foo.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()
}
}
......@@ -5,10 +5,10 @@ trait A {
class C : A {
override fun bar() : String {
override fun bar(): String {
return super<A>.bar()
}
override fun foo(value : String) : Int {
override fun foo(value: String): Int {
return super<A>.foo(value)
}
}
......@@ -4,5 +4,5 @@ trait A {
class B : A {
override val String.prop : Int = 0
override val String.prop: Int = 0
}
\ No newline at end of file
......@@ -4,6 +4,6 @@ open class A() {
fun some() : A {
return object : A() {
override val method : () -> Unit? = ?
override val method: () -> Unit? = ?
}
}
......@@ -4,7 +4,7 @@ trait A<T> {
class C : A<C> {
override fun foo(value : C) {
override fun foo(value: C) {
super<A>.foo(value)
}
}
......@@ -2,7 +2,7 @@ import foo.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)
}
}
......@@ -4,7 +4,7 @@ trait A {
class C : A {
override fun foo(value : String) : Int {
override fun foo(value: String): Int {
return super<A>.foo(value)
}
}
......@@ -6,8 +6,8 @@ open class A() {
class C : A() {
val constant = 42
// Some comment
override val bar : Int = 0
override fun foo(value : Int) {
override val bar: Int = 0
override fun foo(value: Int) {
super<A>.foo(value)
}
......
......@@ -4,7 +4,7 @@ trait A {
class C : A {
override fun foo(value : String) {
override fun foo(value: String) {
super<A>.foo(value)
}
}
......@@ -4,5 +4,5 @@ trait 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() {
throw UnsupportedOperationException()
}
protected override val testProp : Int = 0
protected override val testProp: Int = 0
/**
* test
......
......@@ -3,7 +3,7 @@ import lib.ArrayFactory
public class Impl : ArrayFactory {
override fun create() : lib.Array {
override fun create(): lib.Array {
throw UnsupportedOperationException()
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ trait G<T> {
class GC<T>() : G<T> {
override fun foo(t : T) : T {
override fun foo(t: T): T {
throw UnsupportedOperationException()
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ trait Some {
class SomeOther : Some {
override fun foo(some : Int?) : Int {
override fun foo(some: Int?): Int {
throw UnsupportedOperationException()
}
}
\ No newline at end of file
class Some {
fun some() {
var int : Int = 0
var int: Int = 0
int = 12
int += 12
......
class Some() {
val a : Int
val a: Int
}
\ No newline at end of file
fun test(a : Int,
b : Int) {
fun test(a: Int,
b: Int) {
}
\ No newline at end of file
class Test {
var test : Int
var test: Int
get () {
return 0
}
......
class Some {
fun some() {
var int : Int=0
var int: Int=0
int=12
int+=12
......
class Test {
fun someLong(a : Int
fun someLong(a: Int
) {
}
}
......
class Test {
fun someLong(a : Int
fun someLong(a: Int
) {
}
}
......
fun some(x : Any) {
fun some(x: Any) {
when (x) {
is Int ->
0
......
fun some(x : Any) {
fun some(x: Any) {
when (x) {
is Int -> 0
else -> 1
......
......@@ -4,4 +4,4 @@ import java.util.Map
fun getEntry() : java.util.Map.Entry<jet.Array<String>, java.sql.Array> {
}
val x : Map.Entry<Array<String>, java.sql.Array> = getEntry()
\ No newline at end of file
val x: Map.Entry<Array<String>, java.sql.Array> = getEntry()
\ No newline at end of file
// "Specify Type Explicitly" "true"
val x : (Int) -> String = { (a: Int) -> ""}
\ No newline at end of file
val x: (Int) -> String = { (a: Int) -> ""}
\ No newline at end of file
// "Specify Type Explicitly" "true"
class String {}
val x : jet.String = ""
\ No newline at end of file
val x: jet.String = ""
\ No newline at end of file
// "Specify Type Explicitly" "true"
val x : Unit = #()
\ No newline at end of file
val x: Unit = #()
\ No newline at end of file
// "Remove initializer from property" "true"
abstract class A {
abstract var i<caret> : Int
abstract var i: Int
}
// "Remove initializer from property" "true"
abstract class A {
abstract var i<caret> : Int
abstract var i<caret>: Int
}
// "Remove getter and initializer from property" "true"
abstract class B {
abstract val i<caret> : Int
abstract val i<caret>: Int
}
\ No newline at end of file
......@@ -2,5 +2,5 @@
package a
class A() {
internal protected fun foo() : Int = 1
internal protected fun foo(): Int = 1
}
\ No newline at end of file
......@@ -2,5 +2,5 @@
package a
class A() {
protected fun <caret>foo() : Int = 1
protected fun <caret>foo(): Int = 1
}
\ No newline at end of file
......@@ -2,5 +2,5 @@
package a
class A() {
public fun <caret>foo() : String = "a"
public fun <caret>foo(): String = "a"
}
\ No newline at end of file
......@@ -3,4 +3,4 @@ package a
import java.util.List
public val <caret>l : List<Int>? = java.util.Collections.emptyList<Int>()
\ No newline at end of file
public val <caret>l: List<Int>? = java.util.Collections.emptyList<Int>()
\ No newline at end of file
......@@ -9,7 +9,7 @@ import java.util.List
class M {
trait A {
val l<caret> : List<Int>?
val l<caret>: List<Int>?
}
}
}
\ No newline at end of file
......@@ -5,5 +5,5 @@ package a
import b.B
class A() {
public val <caret>a : B = b.foo()
public val <caret>a: B = b.foo()
}
\ No newline at end of file
......@@ -3,5 +3,5 @@
class A() {}
class B() {
public val <caret>a : A = A()
public val <caret>a: A = A()
}
\ No newline at end of file
......@@ -3,6 +3,6 @@ package a
class M {
trait A {
abstract val e<caret> : Exception
abstract val e<caret>: Exception
}
}
\ No newline at end of file
......@@ -3,6 +3,6 @@ package a
class M {
trait A {
abstract val i<caret> : Int
abstract val i<caret>: Int
}
}
\ No newline at end of file
......@@ -6,6 +6,6 @@ import java.util.List
class M {
trait A {
abstract val l<caret> : List<Int>?
abstract val l<caret>: List<Int>?
}
}
\ No newline at end of file
// "Make variable mutable" "true"
class A() {
var a : Int = 0
set(v : Int) {
var a: Int = 0
set(v: Int) {
}
}
fun Int.foo(arg : Int) : Unit {
fun Int.foo(arg: Int): Unit {
<caret>
}
\ No newline at end of file
val Int.v : Int
val Int.v: Int
get() {
<caret>
}
\ No newline at end of file
var Int.v : Int
var Int.v: Int
get() {
<caret>
}
......
fun foo() : Unit {
fun foo(): Unit {
<caret>
}
\ No newline at end of file
fun foo(x : Any) : Unit {
fun foo(x: Any): Unit {
<caret>
}
\ No newline at end of file
fun foo(x : Any, y : Any) : Unit {
fun foo(x: Any, y: Any): Unit {
<caret>
}
\ No newline at end of file
fun main(args : Array<String>) {
fun main(args: Array<String>) {
<caret>
}
\ No newline at end of file
fun foo(x : Int) {
fun foo(x: Int) {
<caret>
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册