aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/implicits2.scala
blob: 8e566c19f2d89a6ac0cfa04c0a8eaa658fcaff6a (plain) (tree)


















                                                                                
/* 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"

}