Skip to content

Commit 428568f

Browse files
Merge pull request #7946 from dotty-staging/fix-#6693
Fix #6693: Add regression test
2 parents 972450d + fdbb918 commit 428568f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/pos/i6693.scala

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package towers.computes
2+
3+
import quoted._
4+
5+
sealed abstract class Computes[T]
6+
7+
object Computes {
8+
9+
opaque type Opaque[T] = Int
10+
11+
implicit class ComputesApplication1[T : Type](fn : Computes[Opaque[T]]) {
12+
def apply[A](arg1 : Computes[A]) : Computes[T] = ???
13+
}
14+
15+
def let[V, T : Type](value : Computes[V], body : Computes[Opaque[T]]) : Computes[T] = body(value)
16+
}

0 commit comments

Comments
 (0)