diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-23 10:33:07 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-23 10:33:07 +0200 |
commit | 3462e98f2b834b83f67fa3da03e53c563f9c6b4c (patch) | |
tree | fc26932b4464cfc0fa687b5f6d4e2093a54f9040 | |
parent | 66802ac94d9091052d6cc96833aa15a997ec9e3c (diff) | |
download | dotty-3462e98f2b834b83f67fa3da03e53c563f9c6b4c.tar.gz dotty-3462e98f2b834b83f67fa3da03e53c563f9c6b4c.tar.bz2 dotty-3462e98f2b834b83f67fa3da03e53c563f9c6b4c.zip |
Make var fields of FunctionalInterfaces private.
-rw-r--r-- | src/dotty/tools/dotc/transform/FunctionalInterfaces.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala b/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala index ec1d4111a..03b2910ae 100644 --- a/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala +++ b/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala @@ -26,8 +26,8 @@ class FunctionalInterfaces extends MiniPhaseTransform { def phaseName: String = "functionalInterfaces" - var allowedReturnTypes: Set[Symbol] = _ // moved here to make it explicit what specializations are generated - var allowedArgumentTypes: Set[Symbol] = _ + private var allowedReturnTypes: Set[Symbol] = _ // moved here to make it explicit what specializations are generated + private var allowedArgumentTypes: Set[Symbol] = _ val maxArgsCount = 2 def shouldSpecialize(m: MethodType)(implicit ctx: Context) = |