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 2e72811 commit 5a81c5dCopy full SHA for 5a81c5d
tests/pos/extmethods.scala
@@ -1,5 +1,5 @@
1
trait That1[A]
2
-class T[A, This <: That1[A]] extends AnyVal {
+class T[A, This <: That1[A]](val x: Int) extends AnyVal {
3
self: This =>
4
var next: This = _
5
final def loop(x: This, cnt: Int): Int = loop(x, cnt + 1)
tests/pos/i143.scala
@@ -5,9 +5,7 @@ import dotty.tools.dotc.core.Denotations._
import dotty.tools.dotc.core.Symbols._
6
import dotty.tools.dotc.core.Contexts._
7
8
-class TC5 extends AnyVal {
9
- implicit val ctx: Context = ???
10
-
+class TC5(val ctx: Context) extends AnyVal {
11
def candidates(mbr: SingleDenotation): Boolean = {
12
mbr.symbol.denot(ctx).exists
13
}
0 commit comments