I have a bit of a problem with a generic class: ``...
# announcements
n
I have a bit of a problem with a generic class:
Copy code
class Parent

class Problem<P: Parent>(size: Int, provider: (Int) -> P){
    
    val array: Array<P> = Array(size, provider)
}
Array() says "cannot use P as reified type parameter. use class instead". Is there a way to still implement the type of init i require in this situation?