summaryrefslogtreecommitdiff
path: root/test/files/neg/t5031b/b.scala
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/t5031b/b.scala
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/t5031b/b.scala')
-rw-r--r--test/files/neg/t5031b/b.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/neg/t5031b/b.scala b/test/files/neg/t5031b/b.scala
new file mode 100644
index 0000000000..bdef237af5
--- /dev/null
+++ b/test/files/neg/t5031b/b.scala
@@ -0,0 +1,3 @@
+package foo
+
+object Bippy