Skip to content

Commit 68728f4

Browse files
committed
Handle old given syntax where identifier and type are seperated by new line (scala#21957)
Fixes scala#21768 Fixes usages of `with {...}` and `= new {}` declarations presented in tests. [Cherry-picked 7644ecd][modified]
1 parent 4b7e402 commit 68728f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaladoc/src/scala/tasty/inspector/TastyInspector.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object ScaladocInternalTastyInspector:
4646
private def checkFiles(tastyFiles: List[String], jars: List[String]): Unit =
4747
def checkFile(fileName: String, ext: String): Unit =
4848
val file = dotty.tools.io.Path(fileName)
49-
if !file.ext.toLowerCase.equalsIgnoreCase(ext) then
49+
if !file.extension.toLowerCase.equalsIgnoreCase(ext) then
5050
throw new IllegalArgumentException(s"File extension is not `.$ext`: $file")
5151
else if !file.exists then
5252
throw new IllegalArgumentException(s"File not found: ${file.toAbsolute}")

0 commit comments

Comments
 (0)