summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-11-12 20:18:20 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-11-12 20:18:20 +0100
commit1bdd5ee07d8ec4374b848099c9a95f27c2e9b381 (patch)
tree2078d84998b0e4a8b94ab0cee945277803d37269 /src/compiler
parent3b68b45a200087104a1ac2de7c4b86635023fd4d (diff)
downloadscala-1bdd5ee07d8ec4374b848099c9a95f27c2e9b381.tar.gz
scala-1bdd5ee07d8ec4374b848099c9a95f27c2e9b381.tar.bz2
scala-1bdd5ee07d8ec4374b848099c9a95f27c2e9b381.zip
better error when typetagging local classes
Inspired by https://issues.scala-lang.org/browse/SI-6649
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/reflect/reify/Errors.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/reify/Errors.scala b/src/compiler/scala/reflect/reify/Errors.scala
index b8b5f8033b..3d7cb95792 100644
--- a/src/compiler/scala/reflect/reify/Errors.scala
+++ b/src/compiler/scala/reflect/reify/Errors.scala
@@ -28,7 +28,7 @@ trait Errors {
}
def CannotReifyWeakType(details: Any) = {
- val msg = "cannot create a TypeTag" + details
+ val msg = "cannot create a TypeTag" + details + ": use WeakTypeTag instead"
throw new ReificationException(defaultErrorPosition, msg)
}