Skip to content

Commit 47b62c1

Browse files
authored
Merge pull request #7904 from dotty-staging/fix-#7879
Fix #7879: Turn test case into neg test
2 parents f47efc0 + 0daea62 commit 47b62c1

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)