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
@@ -3,6 +3,6 @@
interface Foo
interface Bar
<!CONFLICTING_JVM_DECLARATIONS!>fun <T: Foo> foo(x: T): T<!> where T: Bar {null!!}
<!CONFLICTING_JVM_DECLARATIONS!>fun <T> foo(x: T): T<!> where T: Foo, T: Bar {null!!}
<!CONFLICTING_JVM_DECLARATIONS!>fun foo(x: Foo): Foo<!> {null!!}
fun foo(x: Bar): Bar {null!!}