blob: f1b81fa734c1dc5e12deebc717d13d743ceae4d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
object Test {
// The error message tells us that AnyRef#== and Any#== are overloaded.
// A real class couldn't define such an overload, why do we allow AnyRef
// to do so?
"".==[Int]
("": AnyRef).==[Int]
("": Object).==[Int]
}
|