summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2016-05-04 18:22:34 -0700
committerAdriaan Moors <adriaan@lightbend.com>2016-08-11 10:59:15 -0700
commit6f0bb49c17ea1a46283777e39ed5ce016aa048a5 (patch)
treeb39d9328148dee9e53e4eb6ae3ac62f3ffd54f32 /src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
parent6858134fb01315c13df05fbef1b310443f3dac95 (diff)
downloadscala-6f0bb49c17ea1a46283777e39ed5ce016aa048a5.tar.gz
scala-6f0bb49c17ea1a46283777e39ed5ce016aa048a5.tar.bz2
scala-6f0bb49c17ea1a46283777e39ed5ce016aa048a5.zip
Reduce flag fiddling
There isn't much point to the late* flags in a world where we're mutating flags left and right in tree and info transformers... So, lets get rid of the indirection until we can include flags in a symbol's type history, like we do for its info. This retires lateDEFERRED (redundant with SYNTHESIZE_IMPL_IN_SUBCLASS). Since it's introduced so late, it makes little sense to have these synthetic members go back to DEFERRED. Instead, just set DEFERRED directly. Also remove unused late* and not* flags. notPRIVATE subsumes lateFINAL for effective finality (scala/scala-dev#126)
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/AddInterfaces.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/AddInterfaces.scala4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
index 104e2e8c93..406832c262 100644
--- a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
+++ b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
@@ -13,10 +13,6 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure =>
import global._ // the global environment
import definitions._ // standard classes and methods
- /** lateDEFERRED for formerly concrete methods in such traits.
- */
- override def phaseNewFlags: Long = lateDEFERRED
-
def transformMixinInfo(tp: Type): Type = tp match {
case ClassInfoType(parents, decls, clazz) if clazz.isPackageClass || !clazz.isJavaDefined =>