Skip to content

Commit 8e4aa19

Browse files
liufengyunolhotak
andauthored
Fix typo in comment
Co-authored-by: Ondřej Lhoták <[email protected]>
1 parent f75f6dc commit 8e4aa19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/init/warn/type-filter2.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class C(x: Int):
1313

1414
val c: A = a.asInstanceOf[A] // abstraction for c is {A, B}
1515
val d = c.f // treat as c.asInstanceOf[owner of f].f
16-
val e = c.m() // treat as c.asInstanceOf[owner of f].m()
16+
val e = c.m() // treat as c.asInstanceOf[owner of m].m()
1717
val c2: B = a.asInstanceOf[B]
1818
val g = c2.f // no error here
1919

0 commit comments

Comments
 (0)