We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce5d909 commit 7abc466Copy full SHA for 7abc466
src/compiler/scala/reflect/internal/pickling/UnPickler.scala
@@ -834,6 +834,11 @@ abstract class UnPickler /*extends reflect.generic.UnPickler*/ {
834
def newLazyTypeRef(i: Int): LazyType = new LazyTypeRef(i)
835
def newLazyTypeRefAndAlias(i: Int, j: Int): LazyType = new LazyTypeRefAndAlias(i, j)
836
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
+ */
842
def toTypeError(e: MissingRequirementError) =
843
new TypeError(e.msg)
844
0 commit comments