blob: f941ec8dc1b203180a17f496818be2e66c0e3c3f (
plain) (
tree)
|
|
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
|