forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScalaDoc : type parameter in extension method is wrong
fixes scala#12813
- Loading branch information
1 parent
c53cc91
commit b4f1ba5
Showing
7 changed files
with
143 additions
and
70 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,22 @@ | ||
package tests.extensionParams | ||
|
||
extension [A](thiz: A) | ||
def toTuple2[B](that: B): (A, B) = thiz -> that | ||
|
||
extension [A](a: A)(using Int) | ||
def f[B](b: B): (A, B) = ??? | ||
|
||
extension [A](a: A)(using Int) | ||
def ff(b: A): (A, A) = ??? | ||
|
||
extension [A](a: A)(using Int) | ||
def fff(using String)(b: A): (A, A) = ??? | ||
|
||
extension (a: Char)(using Int) | ||
def ffff(using String)(b: Int): Unit = ??? | ||
|
||
extension (a: Char)(using Int) | ||
def fffff[B](using String)(b: B): Unit = ??? | ||
|
||
extension [A <: List[Char]](a: A)(using Int) | ||
def ffffff[B](b: B): (A, B) = ??? |
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
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