Skip to content

Commit 24df635

Browse files
committed
Adds a test for identifiers that contain $.
1 parent 4c9d741 commit 24df635

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

corpus/definitions.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,30 @@ class A {
351351
(identifier)
352352
(type_identifier)))))
353353

354+
=======================================
355+
$ in identifier names
356+
=======================================
357+
358+
class $A$B$ {
359+
val b$, c$ : Int
360+
val d$ : String
361+
}
362+
363+
---
364+
365+
(compilation_unit
366+
(class_definition
367+
(identifier)
368+
(template_body
369+
(val_declaration
370+
(identifier)
371+
(identifier)
372+
(type_identifier))
373+
(val_declaration
374+
(identifier)
375+
(type_identifier)))))
376+
377+
354378
=======================================
355379
Value declarations (Scala 3 syntax)
356380
=======================================

0 commit comments

Comments
 (0)