Add test for multiple arguments in selection type
This commit is contained in:
parent
6ece5d984a
commit
6d6d9fc03b
|
@ -197,6 +197,35 @@ foo = select(some_unknown_type("CONDITION"), {
|
||||||
(interpreted_string_literal))
|
(interpreted_string_literal))
|
||||||
(ERROR))
|
(ERROR))
|
||||||
|
|
||||||
|
================================================================================
|
||||||
|
Select (multiple type arguments)
|
||||||
|
================================================================================
|
||||||
|
|
||||||
|
foo = select(release_variable("ONE", "TWO"), {
|
||||||
|
"d": "d2",
|
||||||
|
default: "f2",
|
||||||
|
})
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(source_file
|
||||||
|
(assignment
|
||||||
|
(identifier)
|
||||||
|
(operator)
|
||||||
|
(select_expression
|
||||||
|
(select_value
|
||||||
|
(selection_type)
|
||||||
|
(ERROR
|
||||||
|
(interpreted_string_literal))
|
||||||
|
(interpreted_string_literal))
|
||||||
|
(select_cases
|
||||||
|
(select_case
|
||||||
|
(interpreted_string_literal)
|
||||||
|
(interpreted_string_literal))
|
||||||
|
(select_case
|
||||||
|
(default)
|
||||||
|
(interpreted_string_literal))))))
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
Select as an identifier
|
Select as an identifier
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
Loading…
Reference in a new issue