Is there a way to convert this to working Kotlin c...
# announcements
v
Is there a way to convert this to working Kotlin code?
Copy code
interface Action<T extends Throwable> {
	void doSomething() throws T;
}
When I paste this converted snippet to try.kotlinlang.org
Copy code
interface Action<T : Throwable> {
	@Throws(T::class)
	fun doSomething() 
}
I see next error msg: Can not use 'T' as reified type parameter. Use a class instead.