From 66847062f37a4a5088e9d3fd2228d2679e334d61 Mon Sep 17 00:00:00 2001 From: jvican Date: Mon, 27 Jun 2016 23:20:03 +0200 Subject: Implement -Yno-predef and -Yno-imports * Implement flags -Yno-predef and -Yno-imports * Add unit tests for both --- tests/neg/customArgs/noimports.scala | 3 +++ tests/neg/customArgs/noimports2.scala | 3 +++ tests/neg/customArgs/nopredef.scala | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 tests/neg/customArgs/noimports.scala create mode 100644 tests/neg/customArgs/noimports2.scala create mode 100644 tests/neg/customArgs/nopredef.scala (limited to 'tests/neg/customArgs') diff --git a/tests/neg/customArgs/noimports.scala b/tests/neg/customArgs/noimports.scala new file mode 100644 index 000000000..6cef8dee8 --- /dev/null +++ b/tests/neg/customArgs/noimports.scala @@ -0,0 +1,3 @@ +object Test { + val t: Int = 1 // error: not found Int +} diff --git a/tests/neg/customArgs/noimports2.scala b/tests/neg/customArgs/noimports2.scala new file mode 100644 index 000000000..b75f1361d --- /dev/null +++ b/tests/neg/customArgs/noimports2.scala @@ -0,0 +1,3 @@ +object Test { + assert("asdf" == "asdf") // error: not found assert +} diff --git a/tests/neg/customArgs/nopredef.scala b/tests/neg/customArgs/nopredef.scala new file mode 100644 index 000000000..b75f1361d --- /dev/null +++ b/tests/neg/customArgs/nopredef.scala @@ -0,0 +1,3 @@ +object Test { + assert("asdf" == "asdf") // error: not found assert +} -- cgit v1.2.3