blob: 824643868c3ca41c74c68ebc6fa76a0ffe7a88e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class Stuff {
def zoop(p: Any{def &(q: Int): Int}) = p & 7
def floop = new { def & = "Hello" }
assert((floop &) == "Hello")
assert(zoop(10) == 2)
}
object Test extends App {
new Stuff
}
|