aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/NameOps.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-06-29 19:09:43 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:34:59 +0200
commit4bf43f82c88dbeb0578e289b37ce1a7580aa22f2 (patch)
tree41c4483ffcf4e93e8d19f4ec89206a848738eb08 /src/dotty/tools/dotc/core/NameOps.scala
parent178e90e441481364f19163a9dad624a4d859fb1b (diff)
downloaddotty-4bf43f82c88dbeb0578e289b37ce1a7580aa22f2.tar.gz
dotty-4bf43f82c88dbeb0578e289b37ce1a7580aa22f2.tar.bz2
dotty-4bf43f82c88dbeb0578e289b37ce1a7580aa22f2.zip
Turn on new hk scheme
For the moment under newHK flag. - avoid crasher in derivedTypeParams (NamedTypes don't always have symbols) - Revise logic in type comparer for new HK scheme
Diffstat (limited to 'src/dotty/tools/dotc/core/NameOps.scala')
-rw-r--r--src/dotty/tools/dotc/core/NameOps.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala
index 17af899e9..1f221b5c8 100644
--- a/src/dotty/tools/dotc/core/NameOps.scala
+++ b/src/dotty/tools/dotc/core/NameOps.scala
@@ -116,12 +116,12 @@ object NameOps {
def hkArgIndex: Int =
name.drop(tpnme.hkArgPrefixLength).toString.toInt
- def isLambdaTraitName(implicit ctx: Context): Boolean =
- name.isTypeName && name.startsWith(tpnme.hkLambdaPrefix)
+ def isLambdaTraitNameOBS(implicit ctx: Context): Boolean =
+ name.isTypeName && name.startsWith(tpnme.hkLambdaPrefixOBS)
- def lambdaTraitVariances(implicit ctx: Context): List[Int] = {
- val vs = name.drop(tpnme.hkLambdaPrefix.length)
- vs.toList.map(c => tpnme.varianceSuffixes.indexOf(c) - 1)
+ def lambdaTraitVariancesOBS(implicit ctx: Context): List[Int] = {
+ val vs = name.drop(tpnme.hkLambdaPrefixOBS.length)
+ vs.toList.map(c => tpnme.varianceSuffixesOBS.indexOf(c) - 1)
}
/** If the name ends with $nn where nn are