Skip to content

Instantly share code, notes, and snippets.

@eyelash
Created January 21, 2024 10:53
Show Gist options
  • Save eyelash/14ff067a731ae5b8787a60652ebe601e to your computer and use it in GitHub Desktop.
Save eyelash/14ff067a731ae5b8787a60652ebe601e to your computer and use it in GitHub Desktop.
void foo(void (*a)(bool, bool), int b, int c, int d, int e) {
a(b<c,d>(e));
}
template <int, int> int b(int) { return 0; }
template <int c, int d> void foo(void (*a)(int), int e) {
a(b<c,d>(e));
}
fun <c, d> b(e: Int): Int = 0
fun <c, d> foo(a: (Int) -> Unit, e: Int) {
a(b<c,d>(e))
}
function b<c, d>(e: number): number { return 0; }
function foo<c, d>(a: (b: number) => void, e: number) {
a(b<c,d>(e));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment