// !LANGUAGE: +FunctionTypesWithBigArity // IGNORE_BACKEND: JS_IR, JS // IGNORE_BACKEND: JS_IR_ES6 class A fun foo( p00: A, p01: A, p02: A, p03: A, p04: A, p05: A, p06: A, p07: A, p08: A, p09: A, p10: A, p11: A, p12: A, p13: A, p14: A, p15: A, p16: A, p17: A, p18: A, p19: A, p20: A, p21: A, p22: A, p23: A, p24: A, p25: A, p26: A, p27: A, p28: A, p29: A ) { } fun box(): String { val ref = ::foo if (ref is Function0<*>) return "Fail 0" if (ref is Function1<*, *>) return "Fail 1" if (ref !is Function30<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *>) return "Fail 30" if (ref is Function31<*, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *, *>) return "Fail 31" return "OK" }