diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2011-11-15 18:24:25 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2011-11-15 18:24:25 +0000 |
commit | 7abc466d64681ea7f2610068702019fee66b0579 (patch) | |
tree | 7feaf9e27b1b58bf3c31cb75f3d16391271ec093 /src/compiler | |
parent | ce5d909de942fe16c92963f74be167b0f0c13b08 (diff) | |
download | scala-7abc466d64681ea7f2610068702019fee66b0579.tar.gz scala-7abc466d64681ea7f2610068702019fee66b0579.tar.bz2 scala-7abc466d64681ea7f2610068702019fee66b0579.zip |
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.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/internal/pickling/UnPickler.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/pickling/UnPickler.scala b/src/compiler/scala/reflect/internal/pickling/UnPickler.scala index 7ea5856f09..00dc04de80 100644 --- a/src/compiler/scala/reflect/internal/pickling/UnPickler.scala +++ b/src/compiler/scala/reflect/internal/pickling/UnPickler.scala @@ -834,6 +834,11 @@ abstract class UnPickler /*extends reflect.generic.UnPickler*/ { def newLazyTypeRef(i: Int): LazyType = new LazyTypeRef(i) def newLazyTypeRefAndAlias(i: Int, j: Int): LazyType = new LazyTypeRefAndAlias(i, j) + /** Convert to a type error, that is printed gracefully instead of crashing. + * + * Similar in intent to what SymbolLoader does (but here we don't have access to + * error reporting, so we rely on the typechecker to report the error). + */ def toTypeError(e: MissingRequirementError) = new TypeError(e.msg) |