summaryrefslogtreecommitdiff
path: root/test/files/neg/sealed-java-enums.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-11-12 00:07:37 +0000
committerPaul Phillips <paulp@improving.org>2010-11-12 00:07:37 +0000
commit91eff8e6d903a9eab2bc83c120774d623df5ad7d (patch)
tree23b15f42d230452d5f0ac0b7ff6ee9f96766a3d5 /test/files/neg/sealed-java-enums.check
parent46a921df8152d2535cca577132a2fe323a57ca88 (diff)
downloadscala-91eff8e6d903a9eab2bc83c120774d623df5ad7d.tar.gz
scala-91eff8e6d903a9eab2bc83c120774d623df5ad7d.tar.bz2
scala-91eff8e6d903a9eab2bc83c120774d623df5ad7d.zip
Half of an implementation of sealedness for jav...
Half of an implementation of sealedness for java enums. Since it's only half it's behind -Xexperimental, but it works like a charm for the half where it works (that being compiling against bytecode.) Need input on how to approach the source half. References ticket #2442. Review by moors.
Diffstat (limited to 'test/files/neg/sealed-java-enums.check')
-rw-r--r--test/files/neg/sealed-java-enums.check8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/sealed-java-enums.check b/test/files/neg/sealed-java-enums.check
new file mode 100644
index 0000000000..9a4bd4241e
--- /dev/null
+++ b/test/files/neg/sealed-java-enums.check
@@ -0,0 +1,8 @@
+sealed-java-enums.scala:5: error: match is not exhaustive!
+missing combination BLOCKED
+missing combination TERMINATED
+missing combination TIMED_WAITING
+
+ def f(state: State) = state match {
+ ^
+one error found