mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 07:28:03 -05:00
17 lines
261 B
TypeScript
17 lines
261 B
TypeScript
//! test_output("matched 42")
|
|
|
|
export default function foo() {
|
|
switch (echo(21) + 21) {
|
|
case 1:
|
|
return "matched 1";
|
|
case echo(40) + 2:
|
|
return "matched 42";
|
|
default:
|
|
return "default";
|
|
}
|
|
}
|
|
|
|
function echo<T>(x: T) {
|
|
return x;
|
|
}
|