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 1ce894e commit e74587fCopy full SHA for e74587f
src/dotty/tools/dotc/transform/ValueClasses.scala
@@ -7,6 +7,7 @@ import Symbols._
7
import SymDenotations._
8
import Contexts._
9
import Flags._
10
+import StdNames._
11
12
/** Methods that apply to user-defined value classes */
13
object ValueClasses {
@@ -22,7 +23,8 @@ object ValueClasses {
22
23
isDerivedValueClass(d.owner) &&
24
!d.isConstructor &&
25
!d.is(SuperAccessor) &&
- !d.is(Macro)
26
+ !d.is(Macro) &&
27
+ !(d.name eq nme.COMPANION_MODULE_METHOD)
28
29
/** The member that of a derived value class that unboxes it. */
30
def valueClassUnbox(d: ClassDenotation)(implicit ctx: Context): Symbol =
0 commit comments