disallow putting type parameter constraints both in type parameter list and in 'where' clause

This commit is contained in:
Dmitry Jemerov
2015-10-06 18:29:00 +02:00
parent 51225d3556
commit 4c4030dfc1
11 changed files with 78 additions and 13 deletions
@@ -34,7 +34,7 @@ fun test4() {
//--------------
fun <T: A, R: T> emptyStrangeMap2(t: T): Map<T, R> where R: A = throw Exception("$t")
fun <T: A, R> emptyStrangeMap2(t: T): Map<T, R> where R: T, R: A = throw Exception("$t")
fun test5(a: A) {
emptyStrangeMap2(a)