Skip to content

Commit 8c77b94

Browse files
Merge pull request #9554 from dotty-staging/fix-#6682
Fix #6682: Add regression test
2 parents ffbccf8 + db170b9 commit 8c77b94

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

tests/pos/i6682a.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object O{
2+
val v = [T] => (y:T) => (x:y.type) => 3
3+
def m = v(v)
4+
}

tests/pos/i6682b.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
object O{
2+
val v = [T] => (y:T) => (x:y.type) => 3
3+
val u = [T] => (y:T) => (x:y.type) => 3
4+
def m = v(u)
5+
}

tests/pos/i6683.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
trait A{
2+
def m: [T] => (x:Int) => Int
3+
}

0 commit comments

Comments
 (0)