Added tests for obsolete tasks

This commit is contained in:
Svetlana Isakova
2015-06-10 19:32:58 +03:00
parent 690a46bbb4
commit 086e69e132
24 changed files with 326 additions and 0 deletions
@@ -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()
}