From 3a5c300688bc0483edd3727f28297ec707af6b27 Mon Sep 17 00:00:00 2001 From: Allan Renucci Date: Sun, 10 Dec 2017 19:40:39 +0100 Subject: [PATCH] Fix #2730: Add regression test --- tests/neg/i2730.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/neg/i2730.scala diff --git a/tests/neg/i2730.scala b/tests/neg/i2730.scala new file mode 100644 index 000000000000..e55ddcb45507 --- /dev/null +++ b/tests/neg/i2730.scala @@ -0,0 +1,8 @@ +object Test { + def test: Unit = { + val x = iDontExist(32) // error: not found: iDontExist + val y = x + x + x + println(x) + } +}