Skip to content

Commit

Permalink
Add extra isInstanceOf test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Nov 2, 2024
1 parent 7b721f0 commit 49d876a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/i21544.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@ class Test():
def m1(xs: List[Boolean]) = for (x: Any) <- xs yield x
def m2(xs: List[Boolean]) = for (x: AnyVal) <- xs yield x
def m3(xs: List[Boolean]) = for (x: Matchable) <- xs yield x

def v1(xs: List[AnyVal]) = for (x: Any) <- xs yield x
def v2(xs: List[AnyVal]) = for (x: AnyVal) <- xs yield x
def v3(xs: List[AnyVal]) = for (x: Matchable) <- xs yield x

def t1(xs: List[Matchable]) = for (x: Any) <- xs yield x
def t2(xs: List[Matchable]) = for (x: Matchable) <- xs yield x

def a1(xs: List[Any]) = for (x: Any) <- xs yield x

0 comments on commit 49d876a

Please # to comment.