mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:54:41 +01:00
Add support for 'package' in expressions. (#3445)
This creates a namespace for `package` scope. It looks like names of class_decls in namespaces lead to an unexpected instref. This is already true, as best as I can tell. I'm not sure if there's a preferred approach to address that, so I've left a TODO for now.
This commit is contained in:
+1
@@ -21,6 +21,7 @@ var c: [(); 5] = ((), (), (), (), (),);
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace {.a = %a, .b = %b, .c = %c}
|
||||
// CHECK:STDOUT: %.loc7_14: i32 = int_literal 1
|
||||
// CHECK:STDOUT: %.loc7_15: type = array_type %.loc7_14, i32
|
||||
// CHECK:STDOUT: %a.var: ref [i32; 1] = var a
|
||||
|
||||
Reference in New Issue
Block a user