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.
2 parents 29e05aa + d17140b commit 50d2a48Copy full SHA for 50d2a48
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -768,7 +768,7 @@ object SymDenotations {
768
769
/** Is this a getter? */
770
final def isGetter(using Context): Boolean =
771
- this.is(Accessor) && !originalName.isSetterName && !originalName.isScala2LocalSuffix
+ this.is(Accessor) && !originalName.isSetterName && !(originalName.isScala2LocalSuffix && symbol.owner.is(Scala2x))
772
773
/** Is this a setter? */
774
final def isSetter(using Context): Boolean =
tests/run/i15943.check
@@ -0,0 +1 @@
1
+asdf
tests/run/i15943.scala
@@ -0,0 +1,7 @@
+case class A(`a `: String)
2
+
3
+@main
4
+def Test = {
5
+ val a = A("asdf")
6
+ println(a.`a `)
7
+}
0 commit comments