File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
mtags/src/main/scala-3/scala/meta/internal/pc
tests/cross/src/test/scala/tests/pc Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,9 @@ object MetalsInteractive:
259
259
indexed.ctx.source,
260
260
)
261
261
then List ((head.symbol, head.typeOpt))
262
+ // https://github.com/lampepfl/dotty/issues/15937
263
+ else if head.isInstanceOf [TypeTree ] then
264
+ enclosingSymbolsWithExpressionType(path.tail, pos, indexed)
262
265
else Nil
263
266
else
264
267
val recovered = recoverError(head, indexed)
Original file line number Diff line number Diff line change @@ -290,6 +290,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
290
290
|""" .stripMargin,
291
291
""" |return
292
292
|""" .stripMargin,
293
+ // methods add in 3.2.1
294
+ filter = item => ! item.contains(" retains" ),
293
295
)
294
296
295
297
check(
@@ -302,6 +304,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
302
304
|}
303
305
|""" .stripMargin,
304
306
" " ,
307
+ // methods add in 3.2.1
308
+ filter = item => ! item.contains(" retains" ),
305
309
)
306
310
307
311
check(
@@ -319,6 +323,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
319
323
compat = Map (
320
324
" 3" -> " "
321
325
),
326
+ // methods add in 3.2.1
327
+ filter = item => ! item.contains(" retains" ),
322
328
)
323
329
324
330
check(
@@ -329,6 +335,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
329
335
|ret@@
330
336
|""" .stripMargin,
331
337
" " ,
338
+ // methods add in 3.2.1
339
+ filter = item => ! item.contains(" retains" ),
332
340
)
333
341
334
342
check(
You can’t perform that action at this time.
0 commit comments