Add more test for instance_expression
@@ -432,8 +432,10 @@ class C {
val c = new D(e, f)
val e = new E:
def app = 1
- val f = new F {}
- val g = new {
+ val f = new:
+ def app = 1
+ val g = new G {}
+ val i = new {
"ok"
}
new Array: Array
@@ -460,6 +462,10 @@ class C {
(identifier)
(instance_expression (type_identifier) (template_body
(function_definition (identifier) (integer_literal)))))
+ (val_definition
+ (identifier)
+ (instance_expression (template_body
+ (function_definition (identifier) (integer_literal)))))
(val_definition
(identifier)
(instance_expression (type_identifier) (template_body)))
