Skip to content

Commit 6cb611a

Browse files
author
Jacob Kim
committed
Add info about scala -Yrepl-class-based:false flag to reflection/overview.md
1 parent 99af562 commit 6cb611a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/reflection/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ available that are loaded by the current classloader, including class
130130

131131
The second step involves obtaining a `ClassMirror` for class `Person` using
132132
the `reflectClass` method. The `ClassMirror` provides access to the
133-
constructor of class `Person`.
133+
constructor of class `Person`. (If this step causes an exception, the easy workaround is to use these flags when starting REPL. `scala -Yrepl-class-based:false`)
134134

135135
scala> val ctor = ru.typeOf[Person].decl(ru.termNames.CONSTRUCTOR).asMethod
136136
ctor: scala.reflect.runtime.universe.MethodSymbol = constructor Person

0 commit comments

Comments
 (0)