Add tests for obsolete issues

#KT-38804 Obsolete
 #KT-38801 Obsolete
 #KT-38835 Obsolete
 #KT-38737 Obsolete
 #KT-38664 Obsolete
 #KT-38549 Obsolete
 #KT-38766 Obsolete
 #KT-38714 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2020-08-11 10:11:47 +03:00
parent 7f4df19dd1
commit 2e131b870a
30 changed files with 503 additions and 0 deletions
@@ -0,0 +1,18 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun test(b: TestRepo) {
coEvery1 { b.save(any()) }
}
fun <T> coEvery1(stubBlock: suspend MockKMatcherScope.() -> T) {}
class MockKMatcherScope {
inline fun <reified T : Any> any(): T = TODO()
}
class TestRepo : CrudRepository<Int, String>
interface CrudRepository<T, K> {
fun <S : T?> save(entity: S): S = TODO()
}
@@ -0,0 +1,27 @@
package
public fun </*0*/ T> coEvery1(/*0*/ stubBlock: suspend MockKMatcherScope.() -> T): kotlin.Unit
public fun test(/*0*/ b: TestRepo): kotlin.Unit
public interface CrudRepository</*0*/ T, /*1*/ K> {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open fun </*0*/ S : T?> save(/*0*/ entity: S): S
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public final class MockKMatcherScope {
public constructor MockKMatcherScope()
public final inline fun </*0*/ reified T : kotlin.Any> any(): T
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public final class TestRepo : CrudRepository<kotlin.Int, kotlin.String> {
public constructor TestRepo()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun </*0*/ S : kotlin.Int?> save(/*0*/ entity: S): S
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}