Skip to content

Commit 7abc466

Browse files
committed
Amending my previous commit with a comment expl...
Amending my previous commit with a comment explaining a bit better what my code does and why.
1 parent ce5d909 commit 7abc466

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/scala/reflect/internal/pickling/UnPickler.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,11 @@ abstract class UnPickler /*extends reflect.generic.UnPickler*/ {
834834
def newLazyTypeRef(i: Int): LazyType = new LazyTypeRef(i)
835835
def newLazyTypeRefAndAlias(i: Int, j: Int): LazyType = new LazyTypeRefAndAlias(i, j)
836836

837+
/** Convert to a type error, that is printed gracefully instead of crashing.
838+
*
839+
* Similar in intent to what SymbolLoader does (but here we don't have access to
840+
* error reporting, so we rely on the typechecker to report the error).
841+
*/
837842
def toTypeError(e: MissingRequirementError) =
838843
new TypeError(e.msg)
839844

0 commit comments

Comments
 (0)