Skip to content

Commit 14a22e7

Browse files
committed
Add more test for instance_expression
1 parent 77ea27e commit 14a22e7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

corpus/expressions.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,10 @@ class C {
432432
val c = new D(e, f)
433433
val e = new E:
434434
def app = 1
435-
val f = new F {}
436-
val g = new {
435+
val f = new:
436+
def app = 1
437+
val g = new G {}
438+
val i = new {
437439
"ok"
438440
}
439441
new Array: Array
@@ -460,6 +462,10 @@ class C {
460462
(identifier)
461463
(instance_expression (type_identifier) (template_body
462464
(function_definition (identifier) (integer_literal)))))
465+
(val_definition
466+
(identifier)
467+
(instance_expression (template_body
468+
(function_definition (identifier) (integer_literal)))))
463469
(val_definition
464470
(identifier)
465471
(instance_expression (type_identifier) (template_body)))

0 commit comments

Comments
 (0)