From 01da58e6b6d356e7830183806056e27f70099caf Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Sun, 20 Jul 2014 14:48:33 -0700 Subject: SI-8736 Restore -language to former glory MultiChoice allows -language to work like -Xlint. The bug as described was that the setting value was set instead of updated (++=) with additional flags. The unreported bug was that `_` no longer set all settings. The corrected behavior is that "contains" means "it was enabled, or _ was set and it was not disabled explicitly." That is the behavior of `-Xlint` but with a different mechanism, since each lint option is a Setting. A semantic difference is that -Xlint enables all the lint options, but -language does not enable all the language features. `scalac -X` does not explain this additional behavior of the `-Xlint` flag. Also worth noting that `scalac -feature -language unused.scala` failed in 2.11.1 but succeeds silently now. --- test/files/neg/t8736-c.flags | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/files/neg/t8736-c.flags (limited to 'test/files/neg/t8736-c.flags') diff --git a/test/files/neg/t8736-c.flags b/test/files/neg/t8736-c.flags new file mode 100644 index 0000000000..fde5313c96 --- /dev/null +++ b/test/files/neg/t8736-c.flags @@ -0,0 +1 @@ +-feature -language:-higherKinds,_ -Xfatal-warnings -- cgit v1.2.3