forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scala#2718 from dotty-staging/infix-prettyprint
SI-4700 Types with symbolic names print in infix by default
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
scala> class &&[T,U] | ||
defined class && | ||
scala> def foo: Int && Boolean = ??? | ||
def foo: Int && Boolean | ||
scala> def foo: Int && Boolean && String = ??? | ||
def foo: Int && Boolean && String | ||
scala> def foo: Int && (Boolean && String) = ??? | ||
def foo: Int && (Boolean && String) | ||
scala> class &:[L, R] | ||
defined class &: | ||
scala> def foo: Int &: String = ??? | ||
def foo: Int &: String | ||
scala> def foo: Int &: Boolean &: String = ??? | ||
def foo: Int &: Boolean &: String | ||
scala> def foo: (Int && String) &: Boolean = ??? | ||
def foo: (Int && String) &: Boolean | ||
scala> def foo: Int && (Boolean &: String) = ??? | ||
def foo: Int && (Boolean &: String) | ||
scala> :quit |