mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Improve generic parameters
This commit is contained in:
parent
31aea380eb
commit
abf33bb214
@ -50,7 +50,7 @@ public interface PluginLoader<P : Plugin, D : PluginDescription> {
|
|||||||
public fun disable(plugin: P)
|
public fun disable(plugin: P)
|
||||||
}
|
}
|
||||||
|
|
||||||
public inline fun <D : PluginDescription, P : Plugin> PluginLoader<P, D>.getDescription(plugin: P): D =
|
public inline fun <D : PluginDescription, P : Plugin> PluginLoader<in P, out D>.getDescription(plugin: P): D =
|
||||||
plugin.description
|
plugin.description
|
||||||
|
|
||||||
public open class PluginLoadException : RuntimeException {
|
public open class PluginLoadException : RuntimeException {
|
||||||
|
Loading…
Reference in New Issue
Block a user