From 5708e9d73ba01c286d7155606b72caeab914face Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 1 Oct 2013 20:28:48 -0700 Subject: SI-6680 unsoundness in gadt typing. Introduces -Xstrict-inference to deal with the significant gap between soundness and what presently compiles. I'm hopeful that it's TOO strict, because it finds e.g. 75 errors compiling immutable/IntMap.scala, but it might be that bad. --- test/files/neg/gadts2.check | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/neg/gadts2.check (limited to 'test/files/neg/gadts2.check') diff --git a/test/files/neg/gadts2.check b/test/files/neg/gadts2.check new file mode 100644 index 0000000000..dc21f3f52c --- /dev/null +++ b/test/files/neg/gadts2.check @@ -0,0 +1,6 @@ +gadts2.scala:7: error: type mismatch; + found : String("abc") + required: B + (s1: Super[Any]) match { case Sub(f) => f("abc") } + ^ +one error found -- cgit v1.2.3