diff options
author | Paul Phillips <paulp@improving.org> | 2013-08-18 15:14:47 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-08-18 15:20:20 -0700 |
commit | b3d9dfa9857aeb937a987536b3e2029d3be0030b (patch) | |
tree | 30b2f9b9777eb3df2622d92daf572e7000654a54 /src/reflect | |
parent | 6d77da374e94ea8b80fc0bf9e544e11f4e9d5cc8 (diff) | |
download | scala-b3d9dfa9857aeb937a987536b3e2029d3be0030b.tar.gz scala-b3d9dfa9857aeb937a987536b3e2029d3be0030b.tar.bz2 scala-b3d9dfa9857aeb937a987536b3e2029d3be0030b.zip |
An unapplySeq-via-String test.
There are a lot of details yet to be ironed out when it comes
to sequences, but at least here's a little evidence that the basic
mechanisms work.
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/Definitions.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/Definitions.scala b/src/reflect/scala/reflect/internal/Definitions.scala index 19458361e1..4aca81bedd 100644 --- a/src/reflect/scala/reflect/internal/Definitions.scala +++ b/src/reflect/scala/reflect/internal/Definitions.scala @@ -725,7 +725,8 @@ trait Definitions extends api.StandardDefinitions { // this method is about a type member which just happens to be named get. def typeOfMemberNamedGet(tp: Type) = resultOfMatchingMethod(tp, nme.get)() def typeOfMemberNamedHead(tp: Type) = resultOfMatchingMethod(tp, nme.head)() - def typeOfMemberNamedApply(tp: Type) = resultOfMatchingMethod(tp, nme.apply)() + def typeOfMemberNamedApply(tp: Type) = resultOfMatchingMethod(tp, nme.apply)(IntTpe) + def typeOfMemberNamedDrop(tp: Type) = resultOfMatchingMethod(tp, nme.drop)(IntTpe) def typeOfMemberNamedGetOrSelf(tp: Type) = typeOfMemberNamedGet(tp) orElse tp def typesOfSelectors(tp: Type) = getterMemberTypes(tp, productSelectors(tp)) def typesOfCaseAccessors(tp: Type) = getterMemberTypes(tp, tp.typeSymbol.caseFieldAccessors) |