From e147fbe1bb2ceeeb464028cd2c92238ad57a3ae1 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 28 Jul 2015 14:55:28 +0200 Subject: Add a test for #743 to pending. --- tests/pending/pos/i743.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/pending/pos/i743.scala (limited to 'tests') diff --git a/tests/pending/pos/i743.scala b/tests/pending/pos/i743.scala new file mode 100644 index 000000000..8fe522cee --- /dev/null +++ b/tests/pending/pos/i743.scala @@ -0,0 +1,6 @@ +object NonLocalReturn { + def foo(a: List[Int]): Int = { + a.foreach(x => return x) + 0 + } +} -- cgit v1.2.3