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 51451cf commit 532617dCopy full SHA for 532617d
plugin-tests/src/test/scala/com/olegpy/bm4/TestImplicitPatterns.scala
@@ -58,6 +58,23 @@ class TestImplicitPatterns extends FreeSpec {
58
}
59
60
"with multiple implicit variables" - {
61
+ "= bindings after non-implicit = bindings" in {
62
+ case class One()
63
+ case class Two()
64
+ case class Three()
65
+
66
+ def dummy(): Int = 42
67
+ def foo(implicit a: Two): Three = Three()
68
69
+ for {
70
+ _ <- Option(1)
71
+ implicit0(one: One) <- Option(One())
72
+ x = dummy()
73
+ implicit0(two: Two) = Two()
74
+ _ = foo
75
+ } yield "ok"
76
+ }
77
78
"mixed bindings" in {
79
for {
80
_ <- Option("dummy")
0 commit comments