In the following two method signatures:
def nodes[N <: Node](dir: Direction, from: Int, prefix: Boolean = false, suffix: Boolean = false) = {...}
def nodes[N <: Node](dir: Direction, prefix: Boolean = false, suffix: Boolean = false) = {...}
I'm getting compiler messages of the form "multiple overloaded alternatives of method nodes define default arguments." This surprises me. The requirement for a "from" argument in the first case clearly disambiguates the two, so there can be no problem with choosing which alternative to use, regardless of what optional arguments are provided. I haven't seen any explanation for this in the blurbs about default values I've Googled.
I have looked at the formal spec (2.8--sorry, it's what I have on hand), and will have to read the second part on this topic several times more to understand it, but intuitively, one would think the above would make perfect sense to the compiler. Could someone comment, please?
Thanks,
Ken