diff options
author | allisonhb <allisonhb@gmx.com> | 2016-12-07 20:44:54 -0500 |
---|---|---|
committer | allisonhb allisonhb@gmx.com <allisonhb@gmx.com> | 2016-12-13 20:29:26 -0500 |
commit | 8badcadbe51f4a02e495f462f5f2666a24d79cb0 (patch) | |
tree | 3f4cc473a81e71097e0f7e08a49ff1d4739feff9 /test/files/run/t4700.check | |
parent | e60768b62151a160026985269a87fd5b63ee0ae8 (diff) | |
download | scala-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.check')
-rw-r--r-- | test/files/run/t4700.check | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t4700.check b/test/files/run/t4700.check index 30f8124b85..40caf0fd36 100644 --- a/test/files/run/t4700.check +++ b/test/files/run/t4700.check @@ -29,4 +29,19 @@ defined type alias Mappy scala> def foo: Int Mappy (Boolean && String) = ??? foo: Int Mappy (Boolean && String) +scala> @showAsInfix class &:[L, R] +defined class $amp$colon + +scala> def foo: Int &: String = ??? +foo: Int &: String + +scala> def foo: Int &: Boolean &: String = ??? +foo: Int &: Boolean &: String + +scala> def foo: (Int || String) &: Boolean = ??? +foo: (Int || String) &: Boolean + +scala> def foo: Int || (Boolean &: String) = ??? +foo: Int || (Boolean &: String) + scala> :quit |