mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 17:31:07 +01:00
Note this doesn't support other sizes or types, it just errors on them. Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
committed by
GitHub
co-authored by
Geoff Romer
parent
7e91fbc276
commit
2620ba066d
+2
-2
@@ -2,10 +2,10 @@
|
||||
// Exceptions. See /LICENSE for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
|
||||
fn snd[T:! Type](x: Int, y: T) -> T {
|
||||
fn snd[T:! Type](x: i32, y: T) -> T {
|
||||
return y;
|
||||
}
|
||||
|
||||
fn main() -> Int {
|
||||
fn main() -> i32 {
|
||||
return snd(0, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user