Skip to content

Commit 505cd86

Browse files
committed
fix StandardDefinitions.scala scaladoc
``` Welcome to Scala 2.13.0-M5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_181). Type in expressions for evaluation. Or try :help. scala> class C { def m(x: => Int) = ??? } defined class C scala> import scala.reflect.runtime.universe._ import scala.reflect.runtime.universe._ scala> val m = typeOf[C].member(TermName("m")).asMethod m: reflect.runtime.universe.MethodSymbol = method m scala> m.params(0)(0).info ^ error: value params is not a member of reflect.runtime.universe.MethodSymbol scala> m.paramLists(0)(0).info res1: reflect.runtime.universe.Type = => Int scala> showRaw(m.paramLists(0)(0).info) res2: String = TypeRef(ThisType(scala), scala.<byname>, List(TypeRef(ThisType(scala), scala.Int, List()))) ```
1 parent b752850 commit 505cd86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/reflect/scala/reflect/api/StandardDefinitions.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ trait StandardDefinitions {
131131
* scala> val m = typeOf[C].member(TermName("m")).asMethod
132132
* m: reflect.runtime.universe.MethodSymbol = method m
133133
*
134-
* scala> m.params(0)(0).info
134+
* scala> m.paramLists(0)(0).info
135135
* res1: reflect.runtime.universe.Type = => scala.Int
136136
*
137-
* scala> showRaw(m.params(0)(0).info)
137+
* scala> showRaw(m.paramLists(0)(0).info)
138138
* res2: String = TypeRef(
139139
* ThisType(scala),
140140
* scala.<byname>, // <-- ByNameParamClass
@@ -159,10 +159,10 @@ trait StandardDefinitions {
159159
* scala> val m = typeOf[C].member(TermName("m")).asMethod
160160
* m: reflect.runtime.universe.MethodSymbol = method m
161161
*
162-
* scala> m.params(0)(0).info
162+
* scala> m.paramLists(0)(0).info
163163
* res1: reflect.runtime.universe.Type = <repeated...>[Object]
164164
*
165-
* scala> showRaw(m.params(0)(0).info)
165+
* scala> showRaw(m.paramLists(0)(0).info)
166166
* res2: String = TypeRef(
167167
* ThisType(scala),
168168
* scala.<repeated...>, // <-- JavaRepeatedParamClass
@@ -184,10 +184,10 @@ trait StandardDefinitions {
184184
* scala> val m = typeOf[C].member(TermName("m")).asMethod
185185
* m: reflect.runtime.universe.MethodSymbol = method m
186186
*
187-
* scala> m.params(0)(0).info
187+
* scala> m.paramLists(0)(0).info
188188
* res1: reflect.runtime.universe.Type = scala.Int*
189189
*
190-
* scala> showRaw(m.params(0)(0).info)
190+
* scala> showRaw(m.paramLists(0)(0).info)
191191
* res2: String = TypeRef(
192192
* ThisType(scala),
193193
* scala.<repeated>, // <-- RepeatedParamClass

0 commit comments

Comments
 (0)