diff options
author | jvican <jorgevc@fastmail.es> | 2016-06-27 23:20:03 +0200 |
---|---|---|
committer | jvican <jorgevc@fastmail.es> | 2016-06-29 00:08:56 +0200 |
commit | 66847062f37a4a5088e9d3fd2228d2679e334d61 (patch) | |
tree | 34ae75ac7cece5f844cb98d79e27973e790f17d5 /tests/neg/customArgs | |
parent | c7d1826cf0456e5efad5cb66ae06e7273c8a8e2a (diff) | |
download | dotty-66847062f37a4a5088e9d3fd2228d2679e334d61.tar.gz dotty-66847062f37a4a5088e9d3fd2228d2679e334d61.tar.bz2 dotty-66847062f37a4a5088e9d3fd2228d2679e334d61.zip |
Implement -Yno-predef and -Yno-imports
* Implement flags -Yno-predef and -Yno-imports
* Add unit tests for both
Diffstat (limited to 'tests/neg/customArgs')
-rw-r--r-- | tests/neg/customArgs/noimports.scala | 3 | ||||
-rw-r--r-- | tests/neg/customArgs/noimports2.scala | 3 | ||||
-rw-r--r-- | tests/neg/customArgs/nopredef.scala | 3 |
3 files changed, 9 insertions, 0 deletions
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 +} |