Skip to content

Commit 3462e98

Browse files
committed
Make var fields of FunctionalInterfaces private.
1 parent 66802ac commit 3462e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotty/tools/dotc/transform/FunctionalInterfaces.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class FunctionalInterfaces extends MiniPhaseTransform {
2626

2727
def phaseName: String = "functionalInterfaces"
2828

29-
var allowedReturnTypes: Set[Symbol] = _ // moved here to make it explicit what specializations are generated
30-
var allowedArgumentTypes: Set[Symbol] = _
29+
private var allowedReturnTypes: Set[Symbol] = _ // moved here to make it explicit what specializations are generated
30+
private var allowedArgumentTypes: Set[Symbol] = _
3131
val maxArgsCount = 2
3232

3333
def shouldSpecialize(m: MethodType)(implicit ctx: Context) =

0 commit comments

Comments
 (0)