summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2010-01-18 16:45:48 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2010-01-18 16:45:48 +0000
commit2cff99f2d2cff5a3e1b896177abbd2acda239744 (patch)
tree4e553e0c7d9d63dd6d8ecedaa8be51144db4308c /test/files/neg
parent7aa371b39388bc510e9cd3f081b2019b09da0a63 (diff)
downloadscala-2cff99f2d2cff5a3e1b896177abbd2acda239744.tar.gz
scala-2cff99f2d2cff5a3e1b896177abbd2acda239744.tar.bz2
scala-2cff99f2d2cff5a3e1b896177abbd2acda239744.zip
Merged revisions 20538-20539,20543-20544,20549,...
Merged revisions 20538-20539,20543-20544,20549,20555-20556,20559-20562,20564-20566 via svnmerge from https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk ........ r20538 | extempore | 2010-01-15 19:00:51 +0100 (Fri, 15 Jan 2010) | 11 lines Fix for #2365. Structural type mono and poly caches now wrap a soft reference around cached classes so they do not interfere with garbage collection. There is a test case, but it is in pending because I spent longer trying to get it to fail under partest than I did writing the actual patch. If you would like to see the behavior which was corrected, go to test/pending/run/bug2365 and run that script with scalac built before and after this commit. Review by dubochet. ........ r20539 | extempore | 2010-01-15 20:48:57 +0100 (Fri, 15 Jan 2010) | 2 lines Wrapped a buffered output stream around class file generation. This has a nontrivial impact on total build time. Closes #2906. ........ r20543 | extempore | 2010-01-16 04:54:39 +0100 (Sat, 16 Jan 2010) | 2 lines Exposed native Array clone() method. Closes #1051. Review by dragos. ........ r20544 | extempore | 2010-01-16 07:37:37 +0100 (Sat, 16 Jan 2010) | 2 lines Made Iterator consistent with Iterable by adding grouped and sliding to IterableLike. Closes #2837. Review by community. ........ r20549 | extempore | 2010-01-16 22:52:44 +0100 (Sat, 16 Jan 2010) | 8 lines New repl feature: you can start a line with . to invoke actions on the previous result. For instance: scala> (1 to 10).iterator res0: Iterator[Int] = non-empty iterator scala> .toList.sum res1: Int = 55 ........ r20555 | extempore | 2010-01-17 20:07:38 +0100 (Sun, 17 Jan 2010) | 2 lines Brought ShowPickler somewhat more up to date with the current pickler format. ........ r20556 | extempore | 2010-01-17 21:50:47 +0100 (Sun, 17 Jan 2010) | 2 lines Don't insert whitespace on multiline strings and xml literals. Closes #2115. No review. ........ r20559 | extempore | 2010-01-18 05:14:06 +0100 (Mon, 18 Jan 2010) | 1 line Test case closes #1737. Review by community. ........ r20560 | extempore | 2010-01-18 05:14:25 +0100 (Mon, 18 Jan 2010) | 1 line Fix and test case for #408. Review by community. ........ r20561 | extempore | 2010-01-18 06:02:30 +0100 (Mon, 18 Jan 2010) | 4 lines Adjectified some parts of speech as discussed on the mailing list. The methods to call on FunctionN are "curried" and "tupled" with "curry" deprecated and "tuple" gone. Closes #2907. Review by community. ........ r20562 | milessabin | 2010-01-18 13:20:57 +0100 (Mon, 18 Jan 2010) | 1 line Fix and test case for #2891. No review necessary. ........ r20564 | odersky | 2010-01-18 15:53:54 +0100 (Mon, 18 Jan 2010) | 1 line cleaned up explicit tailcalls ........ r20565 | odersky | 2010-01-18 15:57:18 +0100 (Mon, 18 Jan 2010) | 1 line some more performance tunings. No review. ........ r20566 | odersky | 2010-01-18 15:57:47 +0100 (Mon, 18 Jan 2010) | 1 line new test. no review. ........
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t2773.check7
-rwxr-xr-xtest/files/neg/t2773.scala8
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t2773.check b/test/files/neg/t2773.check
new file mode 100644
index 0000000000..6e88762144
--- /dev/null
+++ b/test/files/neg/t2773.check
@@ -0,0 +1,7 @@
+t2773.scala:5: error: x is not a member of c
+ import c.x
+ ^
+t2773.scala:6: error: not found: value x
+ println(x)
+ ^
+two errors found
diff --git a/test/files/neg/t2773.scala b/test/files/neg/t2773.scala
new file mode 100755
index 0000000000..aaa6351c83
--- /dev/null
+++ b/test/files/neg/t2773.scala
@@ -0,0 +1,8 @@
+class C(x: Int) { def foo = x }
+
+object Test {
+ val c = new C(0)
+ import c.x
+ println(x)
+}
+