Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions compiler/test-resources/repl/i4184
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
scala> object foo { class Foo }
// defined object foo
scala> object bar { class Foo }
// defined object bar
scala> implicit def eqFoo: Eq[foo.Foo, foo.Foo] = Eq
def eqFoo: Eq[foo.Foo, foo.Foo]
scala> object Bar { new foo.Foo == new bar.Foo }
1 | object Bar { new foo.Foo == new bar.Foo }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
| Values of types foo.Foo and bar.Foo cannot be compared with == or !=
3 changes: 3 additions & 0 deletions tests/pos/i4184.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object Bar {
true == (true: java.lang.Boolean)
}