summaryrefslogtreecommitdiff
path: root/test/files/neg/reflection-names-neg.check
blob: a56a19e7fd73213042c55a49f56d54f433e77a49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
            ^
one error found