From 9bc1dbb5bc70ea514223cfb497a895eb62009b56 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 31 Oct 2018 13:06:01 +0300 Subject: [PATCH] Fix testCleanup --- idea/testData/inspections/cleanup/cleanup.kt | 5 ----- idea/testData/inspections/cleanup/cleanup.kt.after | 10 +++------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/idea/testData/inspections/cleanup/cleanup.kt b/idea/testData/inspections/cleanup/cleanup.kt index d7200e391b5..8ff1bbb730f 100644 --- a/idea/testData/inspections/cleanup/cleanup.kt +++ b/idea/testData/inspections/cleanup/cleanup.kt @@ -65,11 +65,6 @@ fun withTypeParameters() where T : Comparable { val x = C() willBeInfix 1 -fun infixTest() { - arrayListOf(1, 2, 3) map { it } -} - - fun bar(yield: Int = 4) {} fun yield(yield: Int) { diff --git a/idea/testData/inspections/cleanup/cleanup.kt.after b/idea/testData/inspections/cleanup/cleanup.kt.after index 2bd0bc5cadc..ea3faca153d 100644 --- a/idea/testData/inspections/cleanup/cleanup.kt.after +++ b/idea/testData/inspections/cleanup/cleanup.kt.after @@ -51,7 +51,7 @@ fun foo() { class C { fun foo() {} - fun bar() = C::foo + fun bar() = ::foo infix fun willBeInfix(i: Int) {} } @@ -64,11 +64,6 @@ fun withTypeParameters() where T : Cloneable, T : Comparable { val x = C() willBeInfix 1 -fun infixTest() { - arrayListOf(1, 2, 3).map { it } -} - - fun bar(yield: Int = 4) {} fun yield(yield: Int) { @@ -100,7 +95,8 @@ annotation class yield fun test2(p: Int) { `yield`@ p - @`yield` fun f() {} + @`yield` + fun f() {} } object X {