added a test for definition-side checking with expected failure (#673)

This commit is contained in:
Jeremy G. Siek authored and GitHub committed 2021-07-23 11:42:07 -04:00
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);
}