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 0383b06 commit 23a52c1Copy full SHA for 23a52c1
tests/pos/i9295b.scala
@@ -0,0 +1,12 @@
1
+import scala.language.dynamics
2
+
3
+class Foo extends Dynamic {
4
+ def applyDynamic(name: String)()(using DummyImplicit): Bar = ???
5
+}
6
7
+class Bar extends Dynamic {
8
+ def applyDynamic(name: String)(x: Int) = ???
9
10
11
+val foo = new Foo
12
+def baz = foo.blah().apply(42)
tests/pos/i9295c.scala
+ def selectDynamic(name: String)(using DummyImplicit): Bar = ???
+def baz = foo.blah.apply(42)
0 commit comments