From a40af3e42fdfff62901dbc807ed3d899272d2b37 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Fri, 28 Feb 2014 05:25:08 -0800 Subject: SI-5905 Sanity check -language options The option names are hardcoded, but checked by a test. There are no hooks to verify options after the compiler is constructed. Introduced a `MultiChoiceSetting` required for the setting creation framework. --- test/files/run/t5905b-features.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/files/run/t5905b-features.scala (limited to 'test/files/run/t5905b-features.scala') diff --git a/test/files/run/t5905b-features.scala b/test/files/run/t5905b-features.scala new file mode 100644 index 0000000000..627df8334b --- /dev/null +++ b/test/files/run/t5905b-features.scala @@ -0,0 +1,15 @@ + +import tools.partest.DirectTest + +// verify that only languageFeature names are accepted by -language +object Test extends DirectTest { + override def code = "class Code" + + override def extraSettings = s"-usejavacp -d ${testOutput.path}" + + override def show() = { + //compile("-language", "--") // no error + compile(s"-language:noob") + } +} + -- cgit v1.2.3