Skip to content

Commit ba74e70

Browse files
Remove final keyword from NameOps to explor fix for build failure
1 parent 9811e61 commit ba74e70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/core/NameOps.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ object NameOps {
2727
*/
2828
def apply(s: String)(implicit ctx: Context): String = {
2929
val marker = "$$$$"
30-
final val LIMIT: Int = 240
30+
31+
val limit: Int = 240
3132
val MaxNameLength = (limit - 6) min 2 * (limit - 6 - 2 * marker.length - 32)
3233

3334
def toMD5(s: String, edge: Int): String = {

tests/pending/run/t8199.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object Test extends dotty.runtime.LegacyApp {
3939
checkClassName(c.getName)
4040
}
4141
def checkClassName(name: String): Unit = {
42-
final val MaxSuffixLength = 7 // "$.class".length + 1 // potential module class suffix and file extension
42+
final val MaxSuffixLength = 7 // "$.class".length // potential module class suffix and file extension
4343
final val MaxNameLength = 240 - MaxSuffixLength
4444

4545
assert((name + ".class").length <= defaultMaxNameLength, name)

0 commit comments

Comments
 (0)