-
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.
- Loading branch information
Showing
3 changed files
with
42 additions
and
5 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,34 @@ | ||
-- [E046] Cyclic Error: tests/neg/i7820.scala:1:23 --------------------------------------------------------------------- | ||
1 |trait A1 { type F[X <: F[_, _], Y] } // error: cyclic reference involving type F | ||
| ^ | ||
| Cyclic reference involving type F | ||
| | ||
| Run with -explain-cyclic for more details. | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E046] Cyclic Error: tests/neg/i7820.scala:2:23 --------------------------------------------------------------------- | ||
2 |trait A2 { type F[X <: F, Y] } // error: cyclic reference involving type F | ||
| ^ | ||
| Cyclic reference involving type F | ||
| | ||
| Run with -explain-cyclic for more details. | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- [E046] Cyclic Error: tests/neg/i7820.scala:3:23 --------------------------------------------------------------------- | ||
3 |trait A3 { type F[X >: F, Y] } // error: cyclic reference involving type F | ||
| ^ | ||
| Cyclic reference involving type F | ||
| | ||
| Run with -explain-cyclic for more details. | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
-- Warning: tests/neg/i7820.scala:1:25 --------------------------------------------------------------------------------- | ||
1 |trait A1 { type F[X <: F[_, _], Y] } // error: cyclic reference involving type F | ||
| ^ | ||
| `_` is deprecated for wildcard arguments of types: use `?` instead | ||
| This construct can be rewritten automatically under -rewrite -source 3.4-migration. | ||
-- Warning: tests/neg/i7820.scala:1:28 --------------------------------------------------------------------------------- | ||
1 |trait A1 { type F[X <: F[_, _], Y] } // error: cyclic reference involving type F | ||
| ^ | ||
| `_` is deprecated for wildcard arguments of types: use `?` instead | ||
| This construct can be rewritten automatically under -rewrite -source 3.4-migration. |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
trait A1 { type F[X <: F[_, _], Y] } // error: cyclic reference involving type F | ||
trait A2 { type F[X <: F, Y] } // error: cyclic reference involving type F // error | ||
trait A3 { type F[X >: F, Y] } // error: cyclic reference involving type F // error | ||
trait A2 { type F[X <: F, Y] } // error: cyclic reference involving type F | ||
trait A3 { type F[X >: F, Y] } // error: cyclic reference involving type F |