File tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ object NameOps {
27
27
*/
28
28
def apply (s : String )(implicit ctx : Context ): String = {
29
29
val marker = " $$$$"
30
- final val LIMIT : Int = 240
30
+
31
+ val limit : Int = 240
31
32
val MaxNameLength = (limit - 6 ) min 2 * (limit - 6 - 2 * marker.length - 32 )
32
33
33
34
def toMD5 (s : String , edge : Int ): String = {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ object Test extends dotty.runtime.LegacyApp {
39
39
checkClassName(c.getName)
40
40
}
41
41
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
43
43
final val MaxNameLength = 240 - MaxSuffixLength
44
44
45
45
assert((name + " .class" ).length <= defaultMaxNameLength, name)
You can’t perform that action at this time.
0 commit comments