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.
setGivenApply
1 parent 0861a29 commit 8d755c2Copy full SHA for 8d755c2
compiler/src/dotty/tools/dotc/ast/Trees.scala
@@ -440,7 +440,7 @@ object Trees {
440
type ThisTree[-T >: Untyped] = Apply[T]
441
442
def isGivenApply = hasAttachment(untpd.ApplyGiven)
443
- def setGivenApply() = { pushAttachment(untpd.ApplyGiven, ()); this }
+ def setGivenApply() = { putAttachment(untpd.ApplyGiven, ()); this }
444
}
445
446
/** fun[args] */
tests/pos/i8151.scala
@@ -0,0 +1,6 @@
1
+trait A
2
+trait B
3
+object O{
4
+ def m(using x:A = null)(using y:B = null) = 1
5
+ def n = m
6
+}
0 commit comments