Report error on non-reified type parameter with recursive bound in typeOf
Instead of throwing an exception. #KT-40173
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
// USE_EXPERIMENTAL: kotlin.ExperimentalStdlibApi
|
||||
|
||||
import kotlin.reflect.typeOf
|
||||
|
||||
fun <T : Comparable<T>> foo() {
|
||||
<!TYPEOF_NON_REIFIED_TYPE_PARAMETER_WITH_RECURSIVE_BOUND!>typeOf<List<T>>()<!>
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T : kotlin.Comparable<T>> foo(): kotlin.Unit
|
||||
Reference in New Issue
Block a user