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 86169a8 commit fdf7cdcCopy full SHA for fdf7cdc
tests/warn/i15503f.scala
@@ -57,10 +57,10 @@ package givens:
57
trait Y:
58
def doY: String
59
60
- given X:
+ given X with
61
def doX = 7
62
63
- given X => Y: // warn protected param to given class
+ given (using X): Y with // warn protected param to given class
64
def doY = "7"
65
/* desugared. It is protected so that its type can be used in member defs without leaking.
66
* possibly it should be protected only for named parameters.
@@ -72,6 +72,6 @@ package givens:
72
new givens.given_Y(using x$1)()
73
*/
74
75
- given namely: (x: X) => Y: // warn protected param to given class
+ given namely (using x: X): Y with // warn protected param to given class
76
def doY = "8"
77
end givens
0 commit comments