aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/reflection-names-neg.check
blob: f941ec8dc1b203180a17f496818be2e66c0e3c3f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                 
reflection-names-neg.scala:5: error: type mismatch;
 found   : String("abc")
 required: reflect.runtime.universe.Name
Note that implicit conversions are not applicable because they are ambiguous:
 both method stringToTermName in trait Names of type (s: String)reflect.runtime.universe.TermName
 and method stringToTypeName in trait Names of type (s: String)reflect.runtime.universe.TypeName
 are possible conversion functions from String("abc") to reflect.runtime.universe.Name
  val x2 = ("abc": Name) drop 1         // error
            ^
reflection-names-neg.scala:5: error: value drop is not a member of reflect.runtime.universe.Name
  val x2 = ("abc": Name) drop 1         // error
                         ^
two errors found