mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 20:10:29 +00:00
added a test for definition-side checking with expected failure (#673)
This commit is contained in:
1 parent
edbc3f7716
commit
a1c164f598
3 files changed
+16
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
|
||||
fn id[T:! Type](x: T) -> T {
|
||||
return x + 0;
|
||||
}
|
||||
|
||||
fn main() -> Int {
|
||||
return id(0);
|
||||
}
|
||||
Reference in new issue
Block a user