Skip to content

Commit c08ea41

Browse files
committed
add neg test for #2051
1 parent f4ad535 commit c08ea41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/neg/i2051.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
abstract class C { val x: Int }
2+
class D extends C { def x = 1 } // error: method x of type => Int needs to be a stable, immutable value

0 commit comments

Comments
 (0)