mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 12:46:31 +00:00
18 lines
218 B
Plaintext
18 lines
218 B
Plaintext
|
|
||
|
fn exit(status_code: int) #[builtin(Exit)] {}
|
||
|
|
||
|
fn id<T>(v: T) -> T {
|
||
|
v
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
if id::<int>(123) != 123 {
|
||
|
exit(1);
|
||
|
}
|
||
|
if id::<bool>(true) != true {
|
||
|
exit(1);
|
||
|
}
|
||
|
exit(0);
|
||
|
}
|
||
|
|