-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle experimental nested classes (and their methods)
- Loading branch information
Showing
6 changed files
with
62 additions
and
23 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
3 changes: 3 additions & 0 deletions
3
functional-tests/src/test/changes-in-experimental-nested-are-ok/app/App.scala
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,3 @@ | ||
object App { | ||
def main(args: Array[String]): Unit = () | ||
} |
Empty file.
10 changes: 10 additions & 0 deletions
10
functional-tests/src/test/changes-in-experimental-nested-are-ok/v1/A.scala
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,10 @@ | ||
package pkg1 | ||
package pkg2 | ||
|
||
trait Quotes { | ||
val reflect: reflectModule | ||
trait reflectModule { | ||
val report: reportModule | ||
trait reportModule | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
functional-tests/src/test/changes-in-experimental-nested-are-ok/v2/A.scala
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,15 @@ | ||
package pkg1 | ||
package pkg2 | ||
|
||
import scala.annotation.experimental2 | ||
|
||
trait Quotes { | ||
val reflect: reflectModule | ||
trait reflectModule { | ||
val report: reportModule | ||
trait reportModule { | ||
@experimental2 | ||
def errorAndAbort(msg: String): Nothing | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
functional-tests/src/test/changes-in-experimental-nested-are-ok/v2/experimental.scala
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,3 @@ | ||
package scala.annotation | ||
|
||
class experimental2 extends StaticAnnotation |