Skip to content

Commit f51b96a

Browse files
committed
Fix #7879: Add failing test case
1 parent 79fb94c commit f51b96a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/neg/i7879.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object Test {
2+
val head1 +: _ = List(1).view
3+
val _: Int = head1 // error
4+
}

0 commit comments

Comments
 (0)