File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
src/compiler/scala/tools/nsc/typechecker Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -5193,7 +5193,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
5193
5193
if (refTyped.isErrorTyped) {
5194
5194
setError(tree)
5195
5195
} else {
5196
- tree setType refTyped.tpe.resultType
5196
+ tree setType refTyped.tpe.resultType.deconst
5197
5197
if (refTyped.isErrorTyped || treeInfo.admitsTypeSelection(refTyped)) tree
5198
5198
else UnstableTreeError (tree)
5199
5199
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ logImplicits.scala:2: applied implicit conversion from xs.type to ?{def size: ?}
4
4
logImplicits.scala:7: applied implicit conversion from String("abc") to ?{def map: ?} = implicit def augmentString(x: String): scala.collection.immutable.StringOps
5
5
def f = "abc" map (_ + 1)
6
6
^
7
- logImplicits.scala:15: inferred view from String("abc") to Int = C.this.convert:(p: String("abc") )Int
7
+ logImplicits.scala:15: inferred view from String("abc") to Int = C.this.convert:(p: String)Int
8
8
math.max(122, x: Int)
9
9
^
10
10
logImplicits.scala:19: applied implicit conversion from Int(1) to ?{def ->: ?} = implicit def ArrowAssoc[A](self: A): ArrowAssoc[A]
Original file line number Diff line number Diff line change
1
+ object Test {
2
+ final val a = " "
3
+ var b : a.type = a
4
+ b = a
5
+
6
+ final val x = classOf [Object ]
7
+ var y : x.type = x
8
+ y = x
9
+
10
+ final val e = Thread .State .NEW
11
+ var e1 : e.type = e
12
+ e1 = e
13
+ }
You can’t perform that action at this time.
0 commit comments