Skip to content

Commit 83f86ab

Browse files
committed
Fix doc comment
1 parent 01d8dfb commit 83f86ab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,16 +1047,18 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
10471047
else if (sym1 is Module) compareOwner(sym1.companionClass, sym2)
10481048
else 0
10491049

1050-
/** In a set of overloaded applicable alternatives, is `alt1` at least as good as
1051-
* `alt2`? Also used for implicits disambiguation.
1050+
/** Compare to alternatives of an overloaded call or an implicit search. forIn a set of overloaded applicable alternatives, is `alt1` at least as good as
10521051
*
10531052
* @param alt1, alt2 Non-overloaded references indicating the two choices
10541053
* @param level1, level2 If alternatives come from a comparison of two contextual
10551054
* implicit candidates, the nesting levels of the candidates.
10561055
* In all other cases the nesting levels are both 0.
1056+
* @return 1 if 1st alternative is preferred over 2nd
1057+
* -1 if 2nd alternative is preferred over 1st
1058+
* 0 if neither alternative is preferred over the other
10571059
*
1058-
* An alternative A1 is "as good as" an alternative A2 if it wins or draws in a tournament
1059-
* that awards one point for each of the following
1060+
* An alternative A1 is preferred over an alternative A2 if it wins in a tournament
1061+
* that awards one point for each of the following:
10601062
*
10611063
* - A1 is nested more deeply than A2
10621064
* - The nesting levels of A1 and A2 are the same, and A1's owner derives from A2's owner

0 commit comments

Comments
 (0)