Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/ClassObjectBoundsAreNotSupported.kt
T
Andrey Breslav f05f3f5686 Let the user know that class object bounds are not supported
KT-4080 Code analisys show all good, but got compile error

#KT-4080 Fixed
2013-10-15 14:45:22 +04:00

2 lines
112 B
Kotlin

class C<T> where <!UNSUPPORTED!>class object T: Any<!>
fun f<T>() where <!UNSUPPORTED!>class object T: Any<!> {}