From 0093c5d5ddcc4d3ce5ba24c41419a042f2e482ff Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 5 Oct 2016 14:05:11 +0200 Subject: Add test case --- tests/pos/inlineUnit.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/inlineUnit.scala (limited to 'tests') diff --git a/tests/pos/inlineUnit.scala b/tests/pos/inlineUnit.scala new file mode 100644 index 000000000..e4f135db7 --- /dev/null +++ b/tests/pos/inlineUnit.scala @@ -0,0 +1,7 @@ +object Test { + inline def foo: Int = 1 + + def test: Unit = { + foo + } +} -- cgit v1.2.3