-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13374 from bjornregnell/master
Fix #13320: add .type to modules in messages
- Loading branch information
Showing
3 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- [E008] Not Found Error: tests/neg/i13320.scala:8:24 ----------------------------------------------------------------- | ||
8 | type t = Option[Foo.Boo] // error | ||
| ^^^^^^^ | ||
| type Boo is not a member of object Foo - did you mean Foo.Boo.type? | ||
-- [E008] Not Found Error: tests/neg/i13320.scala:4:11 ----------------------------------------------------------------- | ||
4 |var x: Foo.Booo = Foo.Booo // error // error | ||
| ^^^^^^^^ | ||
| type Booo is not a member of object Foo - did you mean Foo.Boo.type? | ||
-- [E008] Not Found Error: tests/neg/i13320.scala:4:22 ----------------------------------------------------------------- | ||
4 |var x: Foo.Booo = Foo.Booo // error // error | ||
| ^^^^^^^^ | ||
| value Booo is not a member of object Foo - did you mean Foo.Boo? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
object Foo: | ||
case object Boo | ||
|
||
var x: Foo.Booo = Foo.Booo // error // error | ||
|
||
object Main: | ||
def main(args: Array[String]) = | ||
type t = Option[Foo.Boo] // error |