blob: 8e566c19f2d89a6ac0cfa04c0a8eaa658fcaff6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Compile with
dotc implicits2.scala -Xprint:front -Xprint-types -verbose
and verify that the inserted wrapString comes from Predef. You should see
val x: <root>.scala.collection.immutable.WrappedString =
<
<scala.Predef.wrapString:
((s: java.lang.String)scala.collection.immutable.WrappedString)
>
(<"abc":java.lang.String("abc")>):scala.collection.immutable.WrappedString
>
*/
object implicits2 {
val x: scala.collection.immutable.WrappedString = "abc"
}
|