diff options
author | Martin Odersky <odersky@gmail.com> | 2016-06-29 19:09:43 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-11 13:34:59 +0200 |
commit | 4bf43f82c88dbeb0578e289b37ce1a7580aa22f2 (patch) | |
tree | 41c4483ffcf4e93e8d19f4ec89206a848738eb08 /src/dotty/tools/dotc/core/NameOps.scala | |
parent | 178e90e441481364f19163a9dad624a4d859fb1b (diff) | |
download | dotty-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.scala | 10 |
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 |