From fbbbb2294680c0f57506f885971b148cae53c92d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 10 Aug 2012 07:29:31 -0700 Subject: Made -Xfatal-warnings less immediately fatal. Instead of changing warnings to errors mid-stream, at the end of a run I check for condition "no errors, some warnings, and fatal warnings" and then generate an error at that point. This is necessary to test for some warnings which come from later stages. --- test/files/neg/t3234.check | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/files/neg/t3234.check') diff --git a/test/files/neg/t3234.check b/test/files/neg/t3234.check index 477b021e5e..8f0d624ed9 100644 --- a/test/files/neg/t3234.check +++ b/test/files/neg/t3234.check @@ -1,2 +1,6 @@ -error: there were 1 inliner warnings; re-run with -Yinline-warnings for details +t3234.scala:17: warning: At the end of the day, could not inline @inline-marked method foo3 + println(foo(42) + foo2(11) + foo3(2)) + ^ +error: No warnings can be incurred under -Xfatal-warnings. +one warning found one error found -- cgit v1.2.3