-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scaladoc: new heuristic for extension method parameter extraction #14810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
136c078
d1ca544
22edae8
349739e
2f31cba
567a0d6
4556c16
d32e4a9
6cdc381
53a411a
c34bf34
6a12242
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,54 @@ | ||
package tests.extensionParams | ||
|
||
trait Animal | ||
|
||
extension [A](thiz: A) | ||
def toTuple2[B](that: B): (A, B) = thiz -> that | ||
def toTuple2[B](that: B): (A, B) | ||
= thiz -> that | ||
|
||
extension [A](a: A)(using Int) | ||
def f[B](b: B): (A, B) = ??? | ||
def f1[B](b: B): (A, B) | ||
= ??? | ||
|
||
extension [A](a: A)(using Int) | ||
def ff(b: A): (A, A) = ??? | ||
def f2(b: A): (A, A) | ||
= ??? | ||
|
||
extension [A](a: A)(using Int) | ||
def fff(using String)(b: A): (A, A) = ??? | ||
def f3(using String)(b: A): (A, A) | ||
= ??? | ||
|
||
extension (a: Char)(using Int) | ||
def ffff(using String)(b: Int): Unit = ??? | ||
def f4(using String)(b: Int): Unit | ||
= ??? | ||
|
||
extension (a: Char)(using Int) | ||
def fffff[B](using String)(b: B): Unit = ??? | ||
def f5[B](using String)(b: B): Unit | ||
= ??? | ||
|
||
extension [A <: List[Char]](a: Int)(using Int) | ||
def f6[B](b: B): (A, B) | ||
= ??? | ||
|
||
extension [A <: List[Char]](using String)(using Unit)(a: A)(using Int)(using Number) | ||
def f7[B, C](b: B)(c: C): (A, B) | ||
= ??? | ||
|
||
extension [A <: List[Char]](using String)(using Unit)(a: A)(using Int)(using Number) | ||
def f8(b: Any)(c: Any): Any | ||
= ??? | ||
|
||
extension [A <: List[Char]](using String)(using Unit)(a: A)(using Int)(using Number) | ||
def f9[B, C](using Int)(b: B)(c: C): (A, B) | ||
= ??? | ||
|
||
extension [A <: List[Char]](using String)(using Unit)(a: A)(using Int)(using Number) | ||
def f10(using Int)(b: Any)(c: Any): Any | ||
= ??? | ||
|
||
def f12(using Int)(b: A)(c: String): Number | ||
= ??? | ||
|
||
extension [A <: List[Char]](a: A)(using Int) | ||
def ffffff[B](b: B): (A, B) = ??? | ||
extension (using String)(using Unit)(a: Animal)(using Int)(using Number) | ||
def f11(b: Any)(c: Any): Any | ||
= ??? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do these tests work? I see test “fixtures” but no test specification. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had answered in person, but I'll put it here for posterity: |
Uh oh!
There was an error while loading. Please reload this page.