mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 15:51:19 +00:00
This is used to make error messages more readable. It'll be particularly important as more complex types are added.
11 lines
478 B
Plaintext
11 lines
478 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// This validates that earlier errors prevent lowering, without crashing.
|
|
// AUTOUPDATE
|
|
// RUN: %{not} %{carbon-run-lowering}
|
|
|
|
// CHECK:STDERR: {{.*}}/toolchain/lowering/testdata/basics/fail_in_semantics.carbon:[[@LINE+1]]:17: Type mismatch: lhs is i32, rhs is f64
|
|
var x: i32 = 1.0;
|