Skip to content

Commit d420515

Browse files
Merge pull request #9550 from dotty-staging/fix-#9248
Fix #9248: Add test
2 parents a2e7b73 + 45ed679 commit d420515

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/pos/i9248.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class C(var a: Int)
2+
3+
extension (c: C)
4+
def foo: Int = c.a
5+
def foo_=(a: Int): Unit = c.a = a
6+
7+
val c = C(10)
8+
val test = c.foo

0 commit comments

Comments
 (0)