summaryrefslogtreecommitdiff
path: root/test/files/pos/t9369.flags
diff options
context:
space:
mode:
authorGerard Basler <gerard.basler@gmail.com>2015-09-12 19:38:22 +0200
committerGerard Basler <gerard.basler@gmail.com>2015-09-12 19:58:08 +0200
commitbdba16f5de91c4a8ac345c345a674f4ba56b542b (patch)
treee84a64f26689407ca93c126401a21b9579bed660 /test/files/pos/t9369.flags
parent7ec4207a2fa84e7a35f514a911893b7e3cb57672 (diff)
downloadscala-bdba16f5de91c4a8ac345c345a674f4ba56b542b.tar.gz
scala-bdba16f5de91c4a8ac345c345a674f4ba56b542b.tar.bz2
scala-bdba16f5de91c4a8ac345c345a674f4ba56b542b.zip
SI-9369 Fix pattern matcher warnings for diamond shaped inheritance.
A previous optimization (d44a86f432a7f9ca250b014acdeab02ac9f2c304) for pattern matcher exhaustivity checks used a smarter encoding to ensure that the scrutinee can be equal to one child only. However, in case of traits between the root and leave type, a child can be of several types and these types should not be in a mutually exclusive group. A simple solution (hat tip to retronym) is to just put traits and classes into separate groups.
Diffstat (limited to 'test/files/pos/t9369.flags')
-rw-r--r--test/files/pos/t9369.flags1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/pos/t9369.flags b/test/files/pos/t9369.flags
new file mode 100644
index 0000000000..b5a8748652
--- /dev/null
+++ b/test/files/pos/t9369.flags
@@ -0,0 +1 @@
+-Xfatal-warnings -unchecked