In Scala, there is a special type of access modifiers: protected[enclosing_scope]. But as soon as I try to use it with package names containing dots, like protected[framework.ui] i get “‘]’ expected but ‘.’ found” compiler error.
It seems really strange, since it is conventional to use dots in package/namespace names in java/.net. Do I miss something or is it impossible to use this access modifier with this type of scope names.
Update
I accepted an answer as it was relevant, though it seems impossible to make what I wanted
You can only restrict the visibility to a scope that you are in, so what do you need dots for?
If you are in
you can make sth.
and
What is your use-case for the dots?