From 89bacb9c25a58454ff1878e67f7ea07ffc8c269f Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 12 May 2015 18:30:53 +0200 Subject: Run tests as they were in scala. --- tests/pending/run/lazy-exprs.check | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/pending/run/lazy-exprs.check (limited to 'tests/pending/run/lazy-exprs.check') diff --git a/tests/pending/run/lazy-exprs.check b/tests/pending/run/lazy-exprs.check new file mode 100644 index 000000000..2efb8ceb4 --- /dev/null +++ b/tests/pending/run/lazy-exprs.check @@ -0,0 +1,21 @@ +lazy-exprs.scala:38: warning: match may not be exhaustive. +It would fail on the following input: Some((x: String forSome x not in Z1)) + t match { + ^ +lazy-exprs.scala:62: warning: match may not be exhaustive. +It would fail on the following input: Some((x: String forSome x not in LazyField)) + t match { + ^ +forced +lazy val in scrutinee: ok +forced +lazy val in case: ok +lazy val in case: forced +ok +lazy val in if condition: forced +ok +lazy val in pattern: forced LazyField +ok +lazy val with patterns: +x and y: xy(x, y) +x1 and y1: x1y1(x1, y1) -- cgit v1.2.3