mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Distinguish between name IDs and string IDs in the type system. (#3341)
Add a `NameId` that is effectively just a wrapper around a `StringId`, with some additional predefined values for names that don't correspond to strings, such as the name of `self` or the function's return slot.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
let n: i32 = *undeclared;
|
||||
|
||||
// CHECK:STDOUT: file "fail_dereference_error.carbon" {
|
||||
// CHECK:STDOUT: %undeclared.ref: <error> = name_reference "undeclared", <error>
|
||||
// CHECK:STDOUT: %undeclared.ref: <error> = name_reference undeclared, <error>
|
||||
// CHECK:STDOUT: %.loc10: ref <error> = dereference <error>
|
||||
// CHECK:STDOUT: %n: i32 = bind_name "n", <error>
|
||||
// CHECK:STDOUT: %n: i32 = bind_name n, <error>
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
Reference in New Issue
Block a user