diff --git a/test/code/parser/expr/fetchAndCall/constFetch.test b/test/code/parser/expr/fetchAndCall/constFetch.test index d00084b..98af79d 100644 --- a/test/code/parser/expr/fetchAndCall/constFetch.test +++ b/test/code/parser/expr/fetchAndCall/constFetch.test @@ -5,6 +5,8 @@ Constant fetches A; A::B; A::class; +$a::B; +$a::class; ----- array( 0: Stmt_Expression( @@ -40,4 +42,24 @@ array( ) ) ) + 3: Stmt_Expression( + expr: Expr_ClassConstFetch( + class: Expr_Variable( + name: a + ) + name: Identifier( + name: B + ) + ) + ) + 4: Stmt_Expression( + expr: Expr_ClassConstFetch( + class: Expr_Variable( + name: a + ) + name: Identifier( + name: class + ) + ) + ) ) \ No newline at end of file