summaryrefslogtreecommitdiff
path: root/test/files/neg/t5031.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-28 13:37:02 -0700
committerJosh Suereth <joshua.suereth@gmail.com>2012-09-05 21:14:59 -0400
commit816cecf9a95989dfc570f2acad87d4156b09e2ff (patch)
treea9fa538f694b01da4366543c08c6a9538f17adf7 /test/files/neg/t5031.check
parente26104db07769ca17fc33cc53a151f22d4298ce3 (diff)
downloadscala-816cecf9a95989dfc570f2acad87d4156b09e2ff.tar.gz
scala-816cecf9a95989dfc570f2acad87d4156b09e2ff.tar.bz2
scala-816cecf9a95989dfc570f2acad87d4156b09e2ff.zip
More fix for invalid companions.
Eliminated InvalidCompanions exception entirely. Anyone's guess why we unholstered this exception every time someone calls "isCodefinedWith" rather than when symbols are created. I moved the check into Namers, where it can be done once and with sufficient finesse not to crash so much. With this patch in place, "playbench" can be built with java7.
Diffstat (limited to 'test/files/neg/t5031.check')
-rw-r--r--test/files/neg/t5031.check6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/t5031.check b/test/files/neg/t5031.check
index 8983d8daf9..2f1090c321 100644
--- a/test/files/neg/t5031.check
+++ b/test/files/neg/t5031.check
@@ -1,5 +1,5 @@
-Id.scala:3: error: Companions 'class Test' and 'object Test' must be defined in same file:
+package.scala:2: error: Companions 'class Test' and 'object Test' must be defined in same file:
Found in t5031/package.scala and t5031/Id.scala
-object Test
- ^
+ class Test
+ ^
one error found