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