You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
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())))
```
0 commit comments