Skip to content

Commit f0551ac

Browse files
committed
Show that Any#L is still rejected when written by the user
This tests that b3dd07c is not *too* liberal.
1 parent 78c7950 commit f0551ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/neg/i4031-anysel.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Test {
2+
val v: Any = 1: Any#L // error
3+
}

0 commit comments

Comments
 (0)