From 63fa05cf443f9a39b2b2ace1a8b68fc6fe3add70 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 5 Dec 2013 11:57:34 +0100 Subject: Changing some assertions on isCommittable --- src/dotty/tools/dotc/core/NameOps.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/NameOps.scala') diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala index 6b365babb..c9665577d 100644 --- a/src/dotty/tools/dotc/core/NameOps.scala +++ b/src/dotty/tools/dotc/core/NameOps.scala @@ -197,8 +197,10 @@ object NameOps { val p = name.indexOfSlice(TRAIT_SETTER_SEPARATOR) if (p >= 0) (name drop (p + TRAIT_SETTER_SEPARATOR.length)).asTermName.setterToGetter - else + else { + assert(name endsWith SETTER_SUFFIX, name) name.take(name.length - SETTER_SUFFIX.length).asTermName + } } /** Nominally, name$default$N, encoded for */ -- cgit v1.2.3