From 18b30803952cee83580eab28068bc773fdce780e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 13 Jul 2016 15:17:17 +0200 Subject: Allow hk parameters in lower bounds --- tests/pos/hklower.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/hklower.scala (limited to 'tests/pos/hklower.scala') diff --git a/tests/pos/hklower.scala b/tests/pos/hklower.scala new file mode 100644 index 000000000..033ee3a34 --- /dev/null +++ b/tests/pos/hklower.scala @@ -0,0 +1,11 @@ +class Test { // error: conflicting bounds + + type T[X] + type U[X] = T[X] + + type V[X] >: T[X] + type W[X] >: T[X] <: T[X] + + def f[C[X] >: T[X]]() = ??? + +} -- cgit v1.2.3