I'm getting confused with generics in Kotlin. How can I use T type of Class in function parameters (in addNewItem() and deleteItem())? I'm getting error "Type parameter T is declared as 'out' but occurs in 'in' position kotlin"
interface IStorageManager<out T: IFileItem> { fun getAllItems(): List<T> fun addNewItem(itemToAdd: T) fun deleteItem(itemToDelete: T) }