diff options
Diffstat (limited to 'plugins/kotlin/idea/tests/testData/inspections/cleanup/basic/basic.kt.after')
-rw-r--r-- | plugins/kotlin/idea/tests/testData/inspections/cleanup/basic/basic.kt.after | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/plugins/kotlin/idea/tests/testData/inspections/cleanup/basic/basic.kt.after b/plugins/kotlin/idea/tests/testData/inspections/cleanup/basic/basic.kt.after index 293e00d7a58f..6a21aaeb5773 100644 --- a/plugins/kotlin/idea/tests/testData/inspections/cleanup/basic/basic.kt.after +++ b/plugins/kotlin/idea/tests/testData/inspections/cleanup/basic/basic.kt.after @@ -67,45 +67,44 @@ val x = C() willBeInfix 1 fun bar(yield: Int = 4) {} fun yield(yield: Int) { - "$`yield`" - "${`yield`}" + "$yield" + "${yield}" - `yield` - val foo = `yield` + `yield` - val foo2 = `yield` + yield + val foo = yield + yield + val foo2 = yield // bar(yield = 5) //this is different in old and new inference, should be tested in compiler yield(4) - yield() {} + yield {} - class yield<T: `yield`<T>> + class yield<T: yield<T>> - return@`yield` - return@`yield` Unit + return@yield + return@yield Unit - val foo5: `yield`<*> + val foo5: yield<*> } fun yield(i: (Int) -> Unit) {} annotation class yield -@`yield`() +@yield() fun test2(p: Int) { - `yield`@ p + yield@ p - @`yield` - fun f() {} + @yield fun f() {} } object X { fun yield() {} fun test3(yield: Int) { - X::`yield` + X::yield - `yield`::toInt + yield::toInt } } |