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

This commit is contained in:
Jeremy G. Siek
2021-07-23 11:42:07 -04:00
committed by GitHub
parent edbc3f7716
commit a1c164f598
3 changed files with 16 additions and 0 deletions
@@ -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);
}