From 98c6a0342f2903f8cbaf34e0f9a13be40916c7b4 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Tue, 18 Oct 2016 16:15:40 +0200 Subject: Fix #1605: don't inline methods that have errors --- tests/neg/i1605.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/neg/i1605.scala (limited to 'tests/neg/i1605.scala') diff --git a/tests/neg/i1605.scala b/tests/neg/i1605.scala new file mode 100644 index 000000000..776f2df47 --- /dev/null +++ b/tests/neg/i1605.scala @@ -0,0 +1,5 @@ +object Test { + def foo = inlineMe + + inline def inlineMe = 1 + x // error +} -- cgit v1.2.3