forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Scaladoc crash when extending non-Scala-3 classes (short-term fix…
… for 3.3.x) (scala#16759) Added jpath check to `ClassLikeSupport` getParentsAsTreeSymbolTuples — check for whether the non-scala3 parent exists before checking the start and end of the span to confirm whether the span exists in getParentsAsTreeSymbolTuples. Fixes scala#15927
- Loading branch information
Showing
3 changed files
with
17 additions
and
1 deletion.
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,13 @@ | ||
package tests | ||
package nonScala3Parent | ||
|
||
import javax.swing.JPanel | ||
import javax.swing.JFrame | ||
|
||
// https://github.com/lampepfl/dotty/issues/15927 | ||
|
||
trait Foo1 extends Numeric[Any] | ||
trait Foo2 extends JPanel | ||
trait Foo3 extends JFrame | ||
trait Foo4 extends Ordering[Any] | ||
trait Foo5 extends Enumeration |
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