Skip to content

Commit 305cd72

Browse files
committed
Fix tests
1 parent 50937d3 commit 305cd72

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

compiler/test-resources/repl/importFromObj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ val res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3)
1414
scala> import util.foo
1515
1 | import util.foo
1616
| ^^^
17-
| value foo is not a member of util - did you mean util.Left?
17+
| value foo is not a member of util - did you mean util.Try?
1818
scala> import util.foo.bar
1919
1 | import util.foo.bar
2020
| ^^^^^^^^
21-
| value foo is not a member of util - did you mean util.Left?
21+
| value foo is not a member of util - did you mean util.Try?

tests/neg/i6724.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- [E008] Member Not Found Error: tests/neg/i6724.scala:7:17 -----------------------------------------------------------
2+
7 | def f(foo: Foo.Baz): Foo[_] = foo // error
3+
| ^^^^^^^
4+
| type Baz is not a member of object Foo - did you mean Foo.Bar?

tests/neg/i6724.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ enum Foo[T] {
44
}
55

66
object Main {
7-
def f(foo: Foo.Baz): Foo[_] = foo
7+
def f(foo: Foo.Baz): Foo[_] = foo // error
88
}

0 commit comments

Comments
 (0)