Skip to content

Commit 6299785

Browse files
committed
Test a few extra variants
This might be overkill, since these modifiers aren't expected here.
1 parent 8a79276 commit 6299785

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/neg/i4058.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
class A(sealed val a: Int) // error
22
class B(lazy val a: Int) // error
33
class C(abstract val a: Int) // error
4+
class D {
5+
def f(sealed a: Int) = 0 // error
6+
def g(lazy a: Int) = 0 // error
7+
def g(override a: Int) = 0 // error
8+
def g(abstract a: Int) = 0 // error
9+
}

0 commit comments

Comments
 (0)