Skip to content

Commit 40e4ff4

Browse files
Merge pull request #6234 from dotty-staging/fix/i5338
Fix #5338: test previously non-compiling code
2 parents 2df386b + ff7fced commit 40e4ff4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/i5338.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object Test {
2+
val unit = ()
3+
4+
def f[T <: Tuple, X](xs: T, x: X) =
5+
xs ++ x *: unit
6+
}

0 commit comments

Comments
 (0)