From 0720cecec36a6229553828f5d095f2f0031bdab2 Mon Sep 17 00:00:00 2001 From: Mirco Date: Fri, 11 Nov 2011 16:08:26 +0000 Subject: [PATCH] Enabled Presentation Compiler test for IDE ticket #1000349, which has been fixed by odersky in r25625. no review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25987 5e8d7ff9-d8ef-0310-90f0-a4852d11357a --- .../presentation/ide-bug-1000349.check | 0 .../src/CompletionOnEmptyArgMethod.scala | 3 -- test/files/presentation/ide-bug-1000349.check | 40 +++++++++++++++++++ .../presentation/ide-bug-1000349/Runner.scala | 0 .../src/CompletionOnEmptyArgMethod.scala | 7 ++++ 5 files changed, 47 insertions(+), 3 deletions(-) delete mode 100644 test/disabled/presentation/ide-bug-1000349.check delete mode 100644 test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala create mode 100644 test/files/presentation/ide-bug-1000349.check rename test/{disabled => files}/presentation/ide-bug-1000349/Runner.scala (100%) create mode 100644 test/files/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala diff --git a/test/disabled/presentation/ide-bug-1000349.check b/test/disabled/presentation/ide-bug-1000349.check deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala b/test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala deleted file mode 100644 index 55df2abc1..000000000 --- a/test/disabled/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala +++ /dev/null @@ -1,3 +0,0 @@ -object Foo { - "".toString.leng /*!*/ -} \ No newline at end of file diff --git a/test/files/presentation/ide-bug-1000349.check b/test/files/presentation/ide-bug-1000349.check new file mode 100644 index 000000000..9c070ef24 --- /dev/null +++ b/test/files/presentation/ide-bug-1000349.check @@ -0,0 +1,40 @@ +reload: CompletionOnEmptyArgMethod.scala + +askTypeCompletion at CompletionOnEmptyArgMethod.scala(2,17) +================================================================================ +[response] aksTypeCompletion at (2,17) +retrieved 37 members +`method !=(x$1: Any)Boolean` +`method !=(x$1: AnyRef)Boolean` +`method ##()Int` +`method +(other: String)String` +`method ->[B](y: B)(Foo, B)` +`method ==(x$1: Any)Boolean` +`method ==(x$1: AnyRef)Boolean` +`method asInstanceOf[T0]=> T0` +`method clone()Object` +`method ensuring(cond: Boolean)Foo` +`method ensuring(cond: Boolean, msg: => Any)Foo` +`method ensuring(cond: Foo => Boolean)Foo` +`method ensuring(cond: Foo => Boolean, msg: => Any)Foo` +`method eq(x$1: AnyRef)Boolean` +`method equals(x$1: Any)Boolean` +`method finalize()Unit` +`method foo=> Foo` +`method formatted(fmtstr: String)String` +`method hashCode()Int` +`method isInstanceOf[T0]=> Boolean` +`method ne(x$1: AnyRef)Boolean` +`method notify()Unit` +`method notifyAll()Unit` +`method synchronized[T0](x$1: T0)T0` +`method toString()String` +`method wait()Unit` +`method wait(x$1: Long)Unit` +`method wait(x$1: Long, x$2: Int)Unit` +`method x=> Foo` +`method →[B](y: B)(Foo, B)` +`value __leftOfArrowFoo` +`value __resultOfEnsuringFoo` +`value selfAny` +================================================================================ \ No newline at end of file diff --git a/test/disabled/presentation/ide-bug-1000349/Runner.scala b/test/files/presentation/ide-bug-1000349/Runner.scala similarity index 100% rename from test/disabled/presentation/ide-bug-1000349/Runner.scala rename to test/files/presentation/ide-bug-1000349/Runner.scala diff --git a/test/files/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala b/test/files/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala new file mode 100644 index 000000000..a3d8e8f06 --- /dev/null +++ b/test/files/presentation/ide-bug-1000349/src/CompletionOnEmptyArgMethod.scala @@ -0,0 +1,7 @@ +object Foo { + new Foo().foo. /*!*/ +} + +class Foo { + def foo = this +} \ No newline at end of file