aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1568.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i1568.scala')
-rw-r--r--tests/neg/i1568.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/neg/i1568.scala b/tests/neg/i1568.scala
new file mode 100644
index 000000000..a260c530b
--- /dev/null
+++ b/tests/neg/i1568.scala
@@ -0,0 +1,3 @@
+object Test {
+ inline def foo(n: Int) = foo(n) // error: cyclic reference
+}