Open
Description
Compiler version
3.3.4, 3.6.3
Minimized code
import scala.language.strictEquality
class Foo
object Foo:
inline given CanEqual[Foo, Foo] = scala.compiletime.error("foo")
val x = new Foo
val y = new Foo
// summon[CanEqual[Foo, Foo]] // doesn't compile
x == y // compile, and this is strange
Expectation
x == y
should not compile