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.
1 parent 545917e commit 79f047aCopy full SHA for 79f047a
tests/pos/i23194.scala
@@ -0,0 +1,14 @@
1
+class R[T] extends annotation.StaticAnnotation
2
+
3
+class A[T]:
4
+ val next: A[T] = null
5
+ val self: this.type = this
6
+ val selfnext: this.next.type = this.next
7
+ def f: (A[T] @R[this.type], A[T] @R[this.next.type]) = ???
8
+ def g: (A[T] @R[self.type], A[T] @R[selfnext.type]) = ???
9
10
+class Test:
11
+ def test =
12
+ val (a, b) = A[String]().f
13
+ val (a2, b2) = A[String]().g
14
0 commit comments