diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-09-09 19:38:29 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-09-10 11:43:33 +1000 |
commit | 46211ddd07432f06d125d9926cd8b42bc7bfba40 (patch) | |
tree | 7d88848c175da100d0e70c4ed682c2ef354c8822 /test/files | |
parent | 0dbdaf8b1fb64806d35c18b362184293d46c89cb (diff) | |
download | scala-46211ddd07432f06d125d9926cd8b42bc7bfba40.tar.gz scala-46211ddd07432f06d125d9926cd8b42bc7bfba40.tar.bz2 scala-46211ddd07432f06d125d9926cd8b42bc7bfba40.zip |
Fix completion for synthetic case modules and methods
I'm pretty sure the `isSynthetic` call added in 854de25ee6 should
instead be `isArtifact`, so that's what I've implemented here.
`isSynthetic` used to also filter out error symbols, which are
created with the flags `SYNTHETIC | IS_ERROR`. I've added an addition
test for `isError`, which was needed to keep the output of
`presentation/scope-completion-import` unchanged.
The checkfile for `presentation/callcc-interpreter` is modified to
add the additional completion proposals: synthetic companion objects.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/presentation/callcc-interpreter.check | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/files/presentation/callcc-interpreter.check b/test/files/presentation/callcc-interpreter.check index 4bf68b3d4e..94a3d64d68 100644 --- a/test/files/presentation/callcc-interpreter.check +++ b/test/files/presentation/callcc-interpreter.check @@ -3,7 +3,7 @@ reload: CallccInterpreter.scala askTypeCompletion at CallccInterpreter.scala(51,34) ================================================================================ [response] askTypeCompletion at (51,34) -retrieved 57 members +retrieved 66 members abstract trait Term extends AnyRef abstract trait Value extends AnyRef case class Add extends callccInterpreter.Term with Product with Serializable @@ -50,6 +50,15 @@ final def synchronized[T0](x$1: T0): T0 final def wait(): Unit final def wait(x$1: Long): Unit final def wait(x$1: Long,x$2: Int): Unit +object Add +object App +object Ccc +object Con +object Fun +object Lam +object M +object Num +object Var private[this] val term0: callccInterpreter.App private[this] val term1: callccInterpreter.App private[this] val term2: callccInterpreter.Add |