forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling tracked param accessors
- Loading branch information
1 parent
f1d146d
commit d2b6a61
Showing
6 changed files
with
54 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
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 |
---|---|---|
@@ -1,5 +1,20 @@ | ||
-- [E156] Syntax Error: tests/neg/abstract-tracked.scala:4:14 ---------------------------------------------------------- | ||
4 |tracked trait F: // error | ||
|^ | ||
4 |tracked trait F // error | ||
|^^^^^^^^^^^^^^^ | ||
|Modifier tracked is not allowed for this definition | ||
5 | val x: Int | ||
-- [E156] Syntax Error: tests/neg/abstract-tracked.scala:9:15 ---------------------------------------------------------- | ||
9 |tracked object O // error | ||
|^^^^^^^^^^^^^^^^ | ||
|Modifier tracked is not allowed for this definition | ||
-- [E156] Syntax Error: tests/neg/abstract-tracked.scala:11:14 --------------------------------------------------------- | ||
11 |tracked class C // error | ||
|^^^^^^^^^^^^^^^ | ||
|Modifier tracked is not allowed for this definition | ||
-- [E156] Syntax Error: tests/neg/abstract-tracked.scala:7:14 ---------------------------------------------------------- | ||
7 | tracked def f: F // error | ||
| ^^^^^^^^^^^^^^^^ | ||
| Modifier tracked is not allowed for this definition | ||
-- [E156] Syntax Error: tests/neg/abstract-tracked.scala:14:14 --------------------------------------------------------- | ||
14 | tracked val x = 1 // error | ||
| ^^^^^^^^^^^^^^^^^ | ||
| Modifier tracked is not allowed for this definition |
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,5 +1,14 @@ | ||
import scala.language.experimental.modularity | ||
import scala.language.future | ||
|
||
tracked trait F: // error | ||
val x: Int | ||
tracked trait F // error | ||
|
||
trait G: | ||
tracked def f: F // error | ||
|
||
tracked object O // error | ||
|
||
tracked class C // error | ||
|
||
def f = | ||
tracked val x = 1 // error |
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