Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A<T: Any>(defaultValue: T) {
- var value = defaultValue
- fun <T2: Any>matchesType(b: A<T2>) {
- value::class.isSuperclass(b.value::class)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement