diff --git a/compiler/testData/checkerWithErrorTypes/full/CovariantOverrideType.jet b/compiler/testData/checkerWithErrorTypes/full/CovariantOverrideType.jet index a32e3d0ca40..1ffd989245c 100644 --- a/compiler/testData/checkerWithErrorTypes/full/CovariantOverrideType.jet +++ b/compiler/testData/checkerWithErrorTypes/full/CovariantOverrideType.jet @@ -1,5 +1,6 @@ trait A { fun foo() : Int = 1 + fun foo2() : Int = 1 fun foo1() : Int = 1 val a : Int val a1 : Int @@ -12,7 +13,7 @@ trait A { abstract class B() : A { override fun foo() { } - override fun foo() : Unit { + override fun foo2() : Unit { } override val a : Double = 1.dbl diff --git a/compiler/testData/checkerWithErrorTypes/full/FunctionReturnTypes.jet b/compiler/testData/checkerWithErrorTypes/full/FunctionReturnTypes.jet index 311a3b16aa6..33d62a62ca3 100644 --- a/compiler/testData/checkerWithErrorTypes/full/FunctionReturnTypes.jet +++ b/compiler/testData/checkerWithErrorTypes/full/FunctionReturnTypes.jet @@ -10,7 +10,7 @@ fun test2() : Any = @a {return@a 1} fun test3() : Any { return } fun test4(): fun(): Unit = { return@test4 } fun test5(): Any = @{ return@ } -fun test5(): Any = {return 1} +fun test6(): Any = {return 1} fun bbb() { return 1 @@ -34,7 +34,7 @@ fun intShortInfer() = 1 fun intShort() : Int = 1 //fun intBlockInfer() {1} fun intBlock() : Int {return 1} -fun intBlock() : Int {1} +fun intBlock1() : Int {1} fun intString(): Int = "s" fun intFunctionLiteral(): Int = { 10 } @@ -47,70 +47,70 @@ fun blockReturnValueTypeMismatchUnit() : Int {return ()} fun blockAndAndMismatch() : Int { true && false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch1() : Int { return true && false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch2() : Int { (return true) && (return false) } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch3() : Int { true || false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch4() : Int { return true || false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch5() : Int { (return true) || (return false) } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch1() : Int { return if (1 > 2) 1.0 else 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch2() : Int { return if (1 > 2) 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch3() : Int { return if (1 > 2) else 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch4() : Int { if (1 > 2) return 1.0 else return 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch5() : Int { if (1 > 2) return 1.0 return 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch6() : Int { if (1 > 2) else return 1.0 return 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch7() : Int { if (1 > 2) 1.0 else 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch8() : Int { if (1 > 2) 1.0 else 2.0 return 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch9() : Int { if (1 > 2) 1.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch10() : Int { return if (1 > 2) 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch11() : Int { if (1 > 2) else 1.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch12() : Int { if (1 > 2) return 1 else return 1.0 @@ -166,9 +166,9 @@ fun f(): Int { if (1 < 2) { return 1 } else returnNothing() } -fun f(): Int = if (1 < 2) 1 else returnNothing() +fun f1(): Int = if (1 < 2) 1 else returnNothing() -public fun f() = 1 +public fun f2() = 1 class B() { protected fun f() = "ss" } diff --git a/compiler/testData/checkerWithErrorTypes/full/ResolveOfJavaGenerics.jet b/compiler/testData/checkerWithErrorTypes/full/ResolveOfJavaGenerics.jet index 702b40d4426..d98dd030994 100644 --- a/compiler/testData/checkerWithErrorTypes/full/ResolveOfJavaGenerics.jet +++ b/compiler/testData/checkerWithErrorTypes/full/ResolveOfJavaGenerics.jet @@ -17,8 +17,4 @@ fun test(a : java.util.ArrayList) { fun test(a : java.lang.Class) { -} - -fun test(a : java.lang.Class) { - } \ No newline at end of file diff --git a/compiler/testData/checkerWithErrorTypes/full/infos/Autocasts.jet b/compiler/testData/checkerWithErrorTypes/full/infos/Autocasts.jet index 0960ee88808..0d4a237a116 100644 --- a/compiler/testData/checkerWithErrorTypes/full/infos/Autocasts.jet +++ b/compiler/testData/checkerWithErrorTypes/full/infos/Autocasts.jet @@ -46,7 +46,7 @@ class C() : A() { } } -fun f10(a : A?) { +fun f101(a : A?) { if (a is C) { a.bar(); } diff --git a/idea/testData/checker/FunctionReturnTypes.jet b/idea/testData/checker/FunctionReturnTypes.jet index b912b8d3022..652bc6648f3 100644 --- a/idea/testData/checker/FunctionReturnTypes.jet +++ b/idea/testData/checker/FunctionReturnTypes.jet @@ -31,7 +31,7 @@ fun intShortInfer() = 1 fun intShort() : Int = 1 //fun intBlockInfer() {1} fun intBlock() : Int {return 1} -fun intBlock() : Int {1} +fun intBlock1() : Int {1} fun intString(): Int = "s" fun intFunctionLiteral(): Int = { 10 } @@ -44,70 +44,70 @@ fun blockReturnValueTypeMismatchUnit() : Int {return ()} fun blockAndAndMismatch() : Int { true && false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch1() : Int { return true && false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch2() : Int { (return true) && (return false) } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch3() : Int { true || false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch4() : Int { return true || false } -fun blockAndAndMismatch() : Int { +fun blockAndAndMismatch5() : Int { (return true) || (return false) } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch1() : Int { return if (1 > 2) 1.0 else 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch2() : Int { return if (1 > 2) 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch3() : Int { return if (1 > 2) else 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch4() : Int { if (1 > 2) return 1.0 else return 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch5() : Int { if (1 > 2) return 1.0 return 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch6() : Int { if (1 > 2) else return 1.0 return 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch7() : Int { if (1 > 2) 1.0 else 2.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch8() : Int { if (1 > 2) 1.0 else 2.0 return 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch9() : Int { if (1 > 2) 1.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch10() : Int { return if (1 > 2) 1 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch11() : Int { if (1 > 2) else 1.0 } -fun blockReturnValueTypeMatch() : Int { +fun blockReturnValueTypeMatch12() : Int { if (1 > 2) return 1 else return 1.0 @@ -163,4 +163,4 @@ fun f(): Int { if (1 < 2) { return 1 } else returnNothing() } -fun f(): Int = if (1 < 2) 1 else returnNothing() +fun f1(): Int = if (1 < 2) 1 else returnNothing() diff --git a/idea/testData/checker/infos/Autocasts.jet b/idea/testData/checker/infos/Autocasts.jet index fc5f8807328..d84364c7330 100644 --- a/idea/testData/checker/infos/Autocasts.jet +++ b/idea/testData/checker/infos/Autocasts.jet @@ -44,7 +44,7 @@ class C() : A() { } } -fun f10(a : A?) { +fun f101(a : A?) { if (a is C) { a.bar(); }