Skip to content

Commit c11f5cb

Browse files
authored
Fix missing code sections in Selectable (#15994)
This was particularly bad since `def applyDynamic(name: String, paramClasses: Class[_]*)(args: Any*): Any` Showed up as `def applyDynamic(name: String, paramClasses: Class[_])(args: Any): Any` With some italics
2 parents a503b7a + 0c8b1b3 commit c11f5cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/src/scala/Selectable.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ package scala
66
*
77
* Implementation classes should define, or make available as extension
88
* methods, the following two method signatures:
9-
*
9+
* {{{
1010
* def selectDynamic(name: String): Any
1111
* def applyDynamic(name: String)(args: Any*): Any =
12-
*
12+
* }}}
1313
* `selectDynamic` is invoked for simple selections `v.m`, whereas
1414
* `applyDynamic` is invoked for selections with arguments `v.m(...)`.
1515
* If there's only one kind of selection, the method supporting the
1616
* other may be omitted. The `applyDynamic` can also have a second parameter
1717
* list of `java.lang.Class` arguments, i.e. it may alternatively have the
1818
* signature
19-
*
19+
* {{{
2020
* def applyDynamic(name: String, paramClasses: Class[_]*)(args: Any*): Any
21-
*
21+
* }}}
2222
* In this case the call will synthesize `Class` arguments for the erasure of
2323
* all formal parameter types of the method in the structural type.
2424
*/
@@ -39,9 +39,9 @@ object Selectable:
3939
/** A marker trait for subclasses of `Selectable` indicating
4040
* that precise parameter types are not needed for method dispatch. That is,
4141
* a class inheriting from this trait and implementing
42-
*
42+
* {{{
4343
* def applyDynamic(name: String, paramTypes: Class[_]*)(args: Any*)
44-
*
44+
* }}}
4545
* should dispatch to a method with the given `name` without having to rely
4646
* on the precise `paramTypes`. Subtypes of `WithoutPreciseParameterTypes`
4747
* can have more relaxed subtyping rules for refinements. They do not need

0 commit comments

Comments
 (0)