We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b86373b + 59ea176 commit e476fe8Copy full SHA for e476fe8
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -614,6 +614,7 @@ object Types {
614
}
615
def goRec(tp: RecType) =
616
if (tp.parent == null) NoDenotation
617
+ else if (tp eq pre) go(tp.parent)
618
else {
619
//println(s"find member $pre . $name in $tp")
620
tests/pos/i7602.scala
@@ -0,0 +1,7 @@
1
+object Test {
2
+ type X[T] = ({ type F[_]; type R = F[T]})#R
3
+
4
+ trait Monad[F[_]]
5
+ type of[M[_[_]], T] = ({ type F[_]; type R = (given M[F]) => F[T]})#R
6
+ def foo(a: of[Monad, String]) = ???
7
+}
0 commit comments