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 2bbd6ce commit 25a0aa2Copy full SHA for 25a0aa2
compiler/src/dotty/tools/dotc/interpreter/Interpreter.scala
@@ -115,6 +115,8 @@ class Interpreter(implicit ctx: Context) {
115
case Typed(expr, _) =>
116
interpretTreeImpl(expr, env)
117
118
+ // Getting the underlying value of a value class. The value class is evaluated as its boxed representation
119
+ // as values in the interpreter are `Object`s. Therefore we just get it from the enviroment as is.
120
case Select(qualifier, _)
121
if tree.symbol.owner.isValueClass && tree.symbol.is(ParamAccessor) && env.contains(qualifier.symbol) =>
122
env(qualifier.symbol)
0 commit comments