Skip to content
Snippets Groups Projects
Commit 6fe16e9c authored by finnr's avatar finnr
Browse files

add a test for nested List types like [[str]]

parent 9523f17b
No related branches found
No related tags found
1 merge request!1Add a test for nested List types like [[str]]
# RUN: choco-opt %s | filecheck %s
i: [[str]] = 0
# CHECK: builtin.module {
# CHECK-NEXT: "choco.ast.program"() ({
# CHECK-NEXT: "choco.ast.var_def"() ({
# CHECK-NEXT: "choco.ast.typed_var"() <{"var_name" = "i"}> ({
# CHECK-NEXT: "choco.ast.list_type"() ({
# CHECK-NEXT: "choco.ast.list_type"() ({
# CHECK-NEXT: "choco.ast.type_name"() <{"type_name" = "str"}> : () -> ()
# CHECK-NEXT: }) : () -> ()
# CHECK-NEXT: }) : () -> ()
# CHECK-NEXT: }) : () -> ()
# CHECK-NEXT: }, {
# CHECK-NEXT: "choco.ast.literal"() <{"value" = 0 : i32}> : () -> ()
# CHECK-NEXT: }) : () -> ()
# CHECK-NEXT: }, {
# CHECK-NEXT: ^0:
# CHECK-NEXT: }) : () -> ()
# CHECK-NEXT: }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment