-
Notifications
You must be signed in to change notification settings - Fork 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
1 parent
1a484de
commit ced7f55
Showing
5 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,13 @@ | ||
val scala3Version = sys.props("plugin.scalaVersion") | ||
val scala2Version = sys.props("plugin.scala2Version") | ||
|
||
lazy val lib = project.in(file("lib")) | ||
.settings( | ||
scalaVersion := scala2Version | ||
) | ||
|
||
lazy val app = project.in(file("app")) | ||
.dependsOn(lib) | ||
.settings( | ||
scalaVersion := scala3Version | ||
) |
File renamed without changes.
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 @@ | ||
> app/compile |
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,7 @@ | ||
class A: | ||
// Safe initialization check only allows capturing `this` either through primary constructor or synthetic `apply` | ||
// `Some` case class comes from Scala 2 stdlib, which is not visible, hence the warning | ||
// For reference: | ||
// https://github.com/lampepfl/dotty/pull/12711 | ||
// https://github.com/lampepfl/dotty/pull/14283 | ||
val some = Some(this) |