aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/inlineUnit.scala7
1 files changed, 7 insertions, 0 deletions
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
+ }
+}