Added tests for obsolete tasks
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
// KT-3496 Type inference bug on y[""]
|
||||
|
||||
class B<T> {
|
||||
fun <S> x (y: B<Iterable<S>>) {
|
||||
val z: S = y[""] // does not work with [], but works with .get()
|
||||
}
|
||||
fun <S> get(s : String): S = throw Exception()
|
||||
}
|
||||
Reference in New Issue
Block a user