I know that, during runtime type parameters will be erased and hence we cannot access it directly. That's why there are reified type parameters in kotlin. But its usage is restricted only for functions. I even tried receiving explicit argument in constructor like this:

```
class Outer<T> {
    inner class Inner(private val clazz: Class<T>) {
        private fun func() {
            if (obj is clazz) {    // even tried obj is clazz::class.java
                ...
            } else {
                ...
            }
        }
    }
}

```

But this gives me `Unresolved reference: clazz` error in android studio. Someone please help me.