-
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.
Fix scaladoc TastyInspector regressions (#21716)
Adds an `inspectAllTastyFilesInContext` method in scaladoc-only version of TastyInspector in an effort to fix regressions introduced by the switch to the new TastyInspector. Notably, those issues are not being fixed in the stable TastyInspector - this is scaladoc only. Also the scaladoc copy of the TastyInspector had to be renamed, as otherwise we run into classpath issues with the stable tasty inspector taking precedence. I really wanted to include the test for both issues, but both required non-standard specification, so I could not use `scaladoc-testcases` and ended up having to use sbt scripted tests unfortunately. --------- Co-authored-by: Mikołaj Fornal <[email protected]>
- Loading branch information
Showing
8 changed files
with
57 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ThisBuild / scalaVersion := sys.props("plugin.scalaVersion") | ||
|
||
lazy val i20476 = project | ||
.in(file("i20476")) | ||
.enablePlugins(ScalaJSPlugin) | ||
|
||
lazy val i18231 = project | ||
.in(file("i18231")) | ||
.settings(scalacOptions += "-release:8") |
4 changes: 4 additions & 0 deletions
4
sbt-test/sbt-dotty/scaladoc-regressions/i18231/src/main/scala/main.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,4 @@ | ||
object Foo { | ||
@Deprecated | ||
def foo(): Unit = ??? | ||
} |
5 changes: 5 additions & 0 deletions
5
sbt-test/sbt-dotty/scaladoc-regressions/i20476/src/main/scala/main.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,5 @@ | ||
package demo | ||
|
||
import scala.scalajs.js | ||
|
||
def bar: js.Promise[Int] = js.Promise.resolve(()).`then`(_ => 1) |
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 @@ | ||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % sys.props("plugin.scalaJSVersion")) |
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,2 @@ | ||
> i18231/doc | ||
> i20476/doc |
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