Skip to content

Commit 0731c24

Browse files
committed
Add pos test
1 parent 2561ce7 commit 0731c24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/init/pos/i15764.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class B(val y: Int):
2+
println(y) // should not issue a warning here
3+
foo()
4+
def foo() = println(y)
5+
6+
class C(override val y: Int) extends B(y)

0 commit comments

Comments
 (0)