Fix testCleanup

This commit is contained in:
Mikhail Glukhikh
2018-10-31 13:06:01 +03:00
parent 318d6e7111
commit 9bc1dbb5bc
2 changed files with 3 additions and 12 deletions
-5
View File
@@ -65,11 +65,6 @@ fun <T : Cloneable> withTypeParameters() where T : Comparable<T> {
val x = C() willBeInfix 1 val x = C() willBeInfix 1
fun infixTest() {
arrayListOf(1, 2, 3) map { it }
}
fun bar(yield: Int = 4) {} fun bar(yield: Int = 4) {}
fun yield(yield: Int) { fun yield(yield: Int) {
+3 -7
View File
@@ -51,7 +51,7 @@ fun foo() {
class C { class C {
fun foo() {} fun foo() {}
fun bar() = C::foo fun bar() = ::foo
infix fun willBeInfix(i: Int) {} infix fun willBeInfix(i: Int) {}
} }
@@ -64,11 +64,6 @@ fun <T> withTypeParameters() where T : Cloneable, T : Comparable<T> {
val x = C() willBeInfix 1 val x = C() willBeInfix 1
fun infixTest() {
arrayListOf(1, 2, 3).map { it }
}
fun bar(yield: Int = 4) {} fun bar(yield: Int = 4) {}
fun yield(yield: Int) { fun yield(yield: Int) {
@@ -100,7 +95,8 @@ annotation class yield
fun test2(p: Int) { fun test2(p: Int) {
`yield`@ p `yield`@ p
@`yield` fun f() {} @`yield`
fun f() {}
} }
object X { object X {