mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:54:49 +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:
@@ -10,6 +10,7 @@ fn Bar(a: i32) {}
|
||||
// CHECK:STDOUT: --- same_param_name.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace {.Foo = %Foo, .Bar = %Bar}
|
||||
// CHECK:STDOUT: %Foo: <function> = fn_decl @Foo
|
||||
// CHECK:STDOUT: %Bar: <function> = fn_decl @Bar
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
Reference in New Issue
Block a user