Skip to content

Commit 0101eb6

Browse files
committed
Fix tuples inlining
When inlining a `this` binding that referes to a result typed with a match type, this type must be normalized and used.
1 parent 927ae4e commit 0101eb6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
File renamed without changes.

tests/run/tuples1a.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object Test extends App {
2+
val t7 = '5' *: 4 *: "C" *: ()
3+
4+
val t7a = t7.tail
5+
val t7b = t7a.tail
6+
val t7c: Unit = (t7.tail: (Int, String)).tail
7+
val t7d: Unit = (t7.tail: Int *: String *: Unit).tail
8+
val t7e: Unit = t7.tail.tail
9+
}

0 commit comments

Comments
 (0)