Skip to content

Commit e2a708c

Browse files
committed
Add test for semantic highlighting end marker of local object
1 parent 7f10cf2 commit e2a708c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

presentation-compiler/test/dotty/tools/pc/tests/tokens/SemanticTokensSuite.scala

+10-1
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,13 @@ class SemanticTokensSuite extends BaseSemanticTokensSuite:
435435
| <<usage>>/*method*/[<<Option>>/*class,abstract*/[<<Int>>/*class,abstract*/]](<<_>>/*parameter,readonly*/.<<typeArg>>/*method*/[<<Some>>/*class*/[<<Int>>/*class,abstract*/]].<<value>>/*variable,readonly*/.<<inferredTypeArg>>/*method*/[<<String>>/*type*/]("str"))
436436
|}
437437
|""".stripMargin
438-
)
438+
)
439+
440+
@Test def `local-object-with-end-i7246` =
441+
check(
442+
"""|def <<bar>>/*method,definition*/ =
443+
| object <<foo>>/*class*/:
444+
| def <<aaa>>/*method,definition*/ = <<???>>/*method*/
445+
| end <<foo>>/*class,definition*/
446+
|""".stripMargin
447+
)

0 commit comments

Comments
 (0)