File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/scala/tools/nsc/transform
reflect/scala/reflect/internal/transform Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ abstract class Constructors extends Statics with Transform with TypingTransforme
607
607
608
608
private def triage () = {
609
609
// Constant typed vals are not memoized.
610
- def memoizeValue (sym : Symbol ) = ! sym.info.resultType.isInstanceOf [FoldableConstantType ]
610
+ def memoizeValue (sym : Symbol ) = enteringErasure( ! sym.info.resultType.isInstanceOf [FoldableConstantType ])
611
611
612
612
// The early initialized field definitions of the class (these are the class members)
613
613
val presupers = treeInfo.preSuperFields(stats)
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ trait Erasure {
135
135
case FoldableConstantType (ct) =>
136
136
// erase classOf[List[_]] to classOf[List]. special case for classOf[Unit], avoid erasing to classOf[BoxedUnit].
137
137
if (ct.tag == ClazzTag && ct.typeValue.typeSymbol != UnitClass ) ConstantType (Constant (apply(ct.typeValue)))
138
- else tp
138
+ else ct.tpe
139
139
case st : ThisType if st.sym.isPackageClass =>
140
140
tp
141
141
case st : SubType =>
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ package <empty> {
264
264
()
265
265
};
266
266
def t(): Object = {
267
- case <synthetic> val x1: Int(2) = 2;
267
+ case <synthetic> val x1: Int = 2;
268
268
case16(){
269
269
<synthetic> val o18: scala.collection.SeqOps = A.unapplySeq(x1);
270
270
if (scala.collection.SeqFactory.UnapplySeqWrapper.isEmpty$extension(o18).unary_!())
You can’t perform that action at this time.
0 commit comments