diff options
author | Martin Odersky <odersky@gmail.com> | 2016-04-15 15:20:00 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-04-15 15:20:00 +0200 |
commit | c32a2acee179fecf1f9d5c53aab94547a1ee2d67 (patch) | |
tree | dc5dae4423d98b6c8f3e3f4e11a7f44b06bd2a8a /src | |
parent | 9481fe9b7bd015437e56d33f7568887dc3ca8e5b (diff) | |
download | dotty-c32a2acee179fecf1f9d5c53aab94547a1ee2d67.tar.gz dotty-c32a2acee179fecf1f9d5c53aab94547a1ee2d67.tar.bz2 dotty-c32a2acee179fecf1f9d5c53aab94547a1ee2d67.zip |
Tweak in NameOps
The previous version seemed to fail non-deterministaically, but after a while
I could not reproduce it anymore. Anyway, leaving the change in.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/NameOps.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala index 4d2335bd9..72f89aec3 100644 --- a/src/dotty/tools/dotc/core/NameOps.scala +++ b/src/dotty/tools/dotc/core/NameOps.scala @@ -120,7 +120,7 @@ object NameOps { def lambdaTraitVariances(implicit ctx: Context): List[Int] = { val vs = name.drop(tpnme.hkLambdaPrefix.length) - vs.map(c => tpnme.varianceSuffixes.indexOf(c) - 1).toList + vs.toList.map(c => tpnme.varianceSuffixes.indexOf(c) - 1) } /** If the name ends with $nn where nn are |