File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
presentation-compiler/src/main/dotty/tools/pc/completions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class Completions(
76
76
if appl.fun == funSel && sel == fun => false
77
77
case _ => true ) &&
78
78
(adjustedPath match
79
- /* In case of `class X derives TC@@` we shouldn't add `[]`
79
+ /* In case of `class X derives TC@@` we shouldn't add `[]`
80
80
*/
81
81
case Ident (_) :: (templ : untpd.DerivingTemplate ) :: _ =>
82
82
val pos = completionPos.toSourcePosition
@@ -213,11 +213,11 @@ class Completions(
213
213
case (ident : Ident ) :: (app@ Apply (_, List (arg))) :: _ =>
214
214
app.symbol.info match
215
215
case mt@ MethodType (termNames) if app.symbol.paramSymss.last.exists(_.is(Given )) &&
216
- ! text.substring(app.fun.span.start, arg.span.end).contains(" using" ) =>
216
+ ! text.substring(app.fun.span.start, arg.span.end).nn. contains(" using" ) =>
217
217
suffix.withNewPrefix(Affix (PrefixKind .Using ))
218
- case _ => suffix
218
+ case _ => suffix
219
219
case _ => suffix
220
-
220
+
221
221
}
222
222
.chain { suffix => // for () suffix
223
223
if shouldAddSuffix && symbol.is(Flags .Method ) then
You can’t perform that action at this time.
0 commit comments