From c08ea413282b76865abbbda38addcbce35953f24 Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Tue, 14 Mar 2017 11:23:05 +0100 Subject: add neg test for #2051 --- tests/neg/i2051.scala | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/neg/i2051.scala (limited to 'tests/neg') diff --git a/tests/neg/i2051.scala b/tests/neg/i2051.scala new file mode 100644 index 000000000..2295a05ab --- /dev/null +++ b/tests/neg/i2051.scala @@ -0,0 +1,2 @@ +abstract class C { val x: Int } +class D extends C { def x = 1 } // error: method x of type => Int needs to be a stable, immutable value -- cgit v1.2.3