Add reporting of the warnings based on Java annotations for expanded type aliases
Before that, such warnings weren't reported as the corresponding errors were reported during type inference (only original types took part there)
This commit is contained in:
@@ -29,6 +29,10 @@ inline fun <reified T : Any> StorageComponentContainer.useImpl() {
|
||||
registerSingleton(T::class.java)
|
||||
}
|
||||
|
||||
inline fun <reified T : Any> StorageComponentContainer.useImplIf(cond: Boolean) {
|
||||
if (cond) useImpl<T>()
|
||||
}
|
||||
|
||||
inline fun <reified T : Any> ComponentProvider.get(): T {
|
||||
return getService(T::class.java)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user