From c32a2acee179fecf1f9d5c53aab94547a1ee2d67 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 15 Apr 2016 15:20:00 +0200 Subject: 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. --- src/dotty/tools/dotc/core/NameOps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3