Skip to content

Commit 3a7478f

Browse files
committed
Add test
1 parent 459cc96 commit 3a7478f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/run/i9056.scala

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
@main def Test =
3+
assert(((): Any).isInstanceOf[Tuple])
4+
assert((1, 2).isInstanceOf[Tuple])
5+
assert((1, 2, 3).isInstanceOf[Tuple])
6+
assert(!"".isInstanceOf[Tuple])
7+
assert(!Some("").isInstanceOf[Tuple])
8+
9+
assert(!((): Any).isInstanceOf[NonEmptyTuple])
10+
assert((1, 2).isInstanceOf[NonEmptyTuple])
11+
assert((1, 2, 3).isInstanceOf[NonEmptyTuple])
12+
assert(!("": Any).isInstanceOf[NonEmptyTuple])
13+
assert(!(Some(""): Any).isInstanceOf[NonEmptyTuple])
14+
15+
assert(!((): Any).isInstanceOf[_ *: _])
16+
assert((1, 2).isInstanceOf[_ *: _])
17+
assert((1, 2, 3).isInstanceOf[_ *: _])
18+
assert(!("": Any).isInstanceOf[_ *: _])
19+
assert(!(Some(""): Any).isInstanceOf[_ *: _])

0 commit comments

Comments
 (0)