mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40: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 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
|
||||
|
||||
public open class PluginLoadException : RuntimeException {
|
||||
|
Loading…
Reference in New Issue
Block a user