We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c481e91 commit d28e1e7Copy full SHA for d28e1e7
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -2662,7 +2662,7 @@ object SymDenotations {
2662
* determined by whether they have a `val` or `var` or not.
2663
*/
2664
def canBeLocal(name: Name, flags: FlagSet)(using Context) =
2665
- !name.isConstructorName && !flags.is(Param) && !flags.is(ParamAccessor)
+ !name.isConstructorName
2666
2667
/** Factory method for SymDenotion creation. All creations
2668
* should be done via this method.
tests/neg/i22620.scala
tests/pos/i22620.scala
@@ -0,0 +1,4 @@
1
+import scala.collection.mutable.ArrayBuffer
2
+
3
+class PrivateTest[-M](private val v: ArrayBuffer[M])
4
0 commit comments