Fix Kotlin stupid bug (KT-47881)

This commit is contained in:
Mygod
2021-07-25 01:25:30 -04:00
parent b2a65915fd
commit 00b869397d
3 changed files with 8 additions and 8 deletions

View File

@@ -58,8 +58,6 @@ fun Method.matches(name: String, vararg classes: Class<*>) = this.name == name &
(0 until parameterCount).all { i -> parameters[i].type == classes[i] }
@RequiresApi(26)
inline fun <reified T> Method.matches1(name: String) = matches(name, T::class.java)
@RequiresApi(26)
inline fun <reified T0, reified T1> Method.matches2(name: String) = matches(name, T0::class.java, T1::class.java)
fun Context.ensureReceiverUnregistered(receiver: BroadcastReceiver) {
try {