Skip to content

Commit

Permalink
Handle old given syntax where identifier and type are seperated by ne…
Browse files Browse the repository at this point in the history
…w line (scala#21957)

Fixes scala#21768

Fixes usages of `with {...}` and `= new {}` declarations presented in
tests.
[Cherry-picked 7644ecd][modified]
  • Loading branch information
tgodzik committed Feb 19, 2025
1 parent 4b7e402 commit 68728f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scaladoc/src/scala/tasty/inspector/TastyInspector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object ScaladocInternalTastyInspector:
private def checkFiles(tastyFiles: List[String], jars: List[String]): Unit =
def checkFile(fileName: String, ext: String): Unit =
val file = dotty.tools.io.Path(fileName)
if !file.ext.toLowerCase.equalsIgnoreCase(ext) then
if !file.extension.toLowerCase.equalsIgnoreCase(ext) then
throw new IllegalArgumentException(s"File extension is not `.$ext`: $file")
else if !file.exists then
throw new IllegalArgumentException(s"File not found: ${file.toAbsolute}")
Expand Down

0 comments on commit 68728f4

Please sign in to comment.