mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Remove RuntimeError / CompilationError. (#2258)
Instead, work out the prefix for an error based on whether it was produced during parsing, semantic analysis, or when running the program.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
package ExplorerTest api;
|
||||
|
||||
// Error: global variable may not be named with keyword `Self`.
|
||||
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/global_variable/fail_named_self.carbon:[[@LINE+1]]: syntax error, unexpected SELF, expecting identifier
|
||||
// CHECK: SYNTAX ERROR: {{.*}}/explorer/testdata/global_variable/fail_named_self.carbon:[[@LINE+1]]: syntax error, unexpected SELF, expecting identifier
|
||||
var Self: i32 = 0;
|
||||
|
||||
fn Main() -> i32 {
|
||||
|
||||
Reference in New Issue
Block a user