Skip to content

Instantly share code, notes, and snippets.

@eyelash
Last active November 2, 2025 15:29
Show Gist options
  • Select an option

  • Save eyelash/14ff067a731ae5b8787a60652ebe601e to your computer and use it in GitHub Desktop.

Select an option

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));
}
int b<c, d>(int e) => 0;
void foo<c, d>(Function(int) a, int e) {
a(b<c,d>(e));
}
class Foo {
static void a(boolean bc, boolean de) {}
static void foo(int b, int c, int d, 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