blob: 7c02676e89f0112f1c3d5284e945a4c2dcee2cdd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import scala.tools.nsc.interpreter._
import scala.tools.partest.ReplTest
object Test extends ReplTest {
def code = """
|import scala.annotation.showAsInfix
|class &&[T,U]
|def foo: Int && Boolean = ???
|def foo: Int && Boolean && String = ???
|def foo: Int && (Boolean && String) = ???
|@showAsInfix type Mappy[T, U] = Map[T, U]
|def foo: Int Mappy (Boolean && String) = ???
|@showAsInfix(false) class ||[T,U]
|def foo: Int || Boolean = ???
|class &:[L, R]
|def foo: Int &: String = ???
|def foo: Int &: Boolean &: String = ???
|def foo: (Int && String) &: Boolean = ???
|def foo: Int && (Boolean &: String) = ???
|""".stripMargin
}
|