8 lines
280 B
Kotlin
Vendored
8 lines
280 B
Kotlin
Vendored
// JAVAC_EXPECTED_FILE
|
|
// KT-498 Very strange error in the type checker
|
|
|
|
class IdUnavailableException() : Exception() {}
|
|
|
|
fun <T : Any> T.getJavaClass() : Class<T> {
|
|
return ((this as Object).getClass()) as Class<T> // Some error here, because of Exception() used above. ?!!!
|
|
} |