File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ -- [E008] Not Found Error: tests/neg/i12487.scala:19:10 ----------------------------------------------------------------
2+ 19 | example notCombine example // error
3+ | ^^^^^^^^^^^^^^^^^^
4+ | value notCombine is not a member of A
Original file line number Diff line number Diff line change 1+ trait A {
2+ def combine (another : A ): A = ???
3+ }
4+
5+ trait Dsl {
6+ def example : A
7+ }
8+
9+ object Dsl {
10+ def execute (program : (dsl : Dsl ) ?=> Int ): String = ???
11+ }
12+
13+ def example (using a : Dsl ): A = ???
14+
15+ import Dsl ._
16+
17+ def demo = Dsl .execute {
18+ // change to `combine` and it compiles
19+ example notCombine example // error
20+ 42
21+ }
Original file line number Diff line number Diff line change 1+ package internal:
2+ object Foo :
3+ inline def foo : Unit = P .s
4+
5+ private object P { def s = " b" }
6+ end internal
7+
8+ @ main def Test = internal.Foo .foo
You can’t perform that action at this time.
0 commit comments