diff options
Diffstat (limited to 'tests/pos/i830.scala')
-rw-r--r-- | tests/pos/i830.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/i830.scala b/tests/pos/i830.scala new file mode 100644 index 000000000..8fcb29f36 --- /dev/null +++ b/tests/pos/i830.scala @@ -0,0 +1,6 @@ +object C { + trait X[T] + implicit def u[A, B]: X[A | B] = new X[A | B] {} + def y[T](implicit x: X[T]): T = ??? + val x: 1 & 2 | 2 & 3 = y +} |