aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymbolLoaders.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-03-03 17:23:15 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-03-03 17:23:15 +0100
commit18cf5d280e3f63213fd6bddbe8e1ed5b5d40b595 (patch)
tree29ba57c7469eb5b53eb1159238ef2778d58db76b /src/dotty/tools/dotc/core/SymbolLoaders.scala
parent92a4fefe58cfe4c1bcccc8f98183079a553d477a (diff)
downloaddotty-18cf5d280e3f63213fd6bddbe8e1ed5b5d40b595.tar.gz
dotty-18cf5d280e3f63213fd6bddbe8e1ed5b5d40b595.tar.bz2
dotty-18cf5d280e3f63213fd6bddbe8e1ed5b5d40b595.zip
More informative asserts.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymbolLoaders.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymbolLoaders.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymbolLoaders.scala b/src/dotty/tools/dotc/core/SymbolLoaders.scala
index 2484165f3..530d084c7 100644
--- a/src/dotty/tools/dotc/core/SymbolLoaders.scala
+++ b/src/dotty/tools/dotc/core/SymbolLoaders.scala
@@ -28,7 +28,7 @@ class SymbolLoaders {
protected def enterNew(
owner: Symbol, member: Symbol,
completer: SymbolLoader, scope: Scope = EmptyScope)(implicit ctx: Context): Symbol = {
- assert(scope.lookup(member.name) == NoSymbol, owner.fullName + "." + member.name)
+ assert(scope.lookup(member.name) == NoSymbol, s"${owner.fullName}.${member.name} already has a symbol")
owner.asClass.enter(member, scope)
member
}