summaryrefslogtreecommitdiff
path: root/test/files/run/t4700.scala
diff options
context:
space:
mode:
authorallisonhb <allisonhb@gmx.com>2016-12-07 20:44:54 -0500
committerallisonhb allisonhb@gmx.com <allisonhb@gmx.com>2016-12-13 20:29:26 -0500
commit8badcadbe51f4a02e495f462f5f2666a24d79cb0 (patch)
tree3f4cc473a81e71097e0f7e08a49ff1d4739feff9 /test/files/run/t4700.scala
parente60768b62151a160026985269a87fd5b63ee0ae8 (diff)
downloadscala-8badcadbe51f4a02e495f462f5f2666a24d79cb0.tar.gz
scala-8badcadbe51f4a02e495f462f5f2666a24d79cb0.tar.bz2
scala-8badcadbe51f4a02e495f462f5f2666a24d79cb0.zip
SI-4700 Show infix types with as few parentheses as needed.
Diffstat (limited to 'test/files/run/t4700.scala')
-rw-r--r--test/files/run/t4700.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/t4700.scala b/test/files/run/t4700.scala
index 6182656b18..77f0de3d38 100644
--- a/test/files/run/t4700.scala
+++ b/test/files/run/t4700.scala
@@ -13,6 +13,11 @@ object Test extends ReplTest {
|def foo: Int && (Boolean && String) = ???
|@showAsInfix type Mappy[T, U] = Map[T, U]
|def foo: Int Mappy (Boolean && String) = ???
+ |@showAsInfix class &:[L, R]
+ |def foo: Int &: String = ???
+ |def foo: Int &: Boolean &: String = ???
+ |def foo: (Int || String) &: Boolean = ???
+ |def foo: Int || (Boolean &: String) = ???
|""".stripMargin
}