Read*BinaryClassTest: type parameter with two upper bounds

This commit is contained in:
Stepan Koltsov
2012-05-10 18:56:18 +04:00
parent 7aa4a32f3e
commit a00e765bd5
8 changed files with 65 additions and 0 deletions
@@ -0,0 +1,8 @@
package test
trait Foo
trait Bar
fun <T> foo()
where T : Foo, T : Bar
= #()
@@ -0,0 +1,7 @@
namespace test
abstract trait test.Foo : jet.Any {
}
abstract trait test.Bar : jet.Any {
}
final fun </*0,r*/ T : test.Bar & test.Foo>foo(): jet.Tuple0