dasz
11/06/2017, 9:26 AMorangy
11/06/2017, 9:29 AMFoo().repeat(3){ -> println("test") }
to resolve to first one. It’s ambiguous by design.dasz
11/06/2017, 9:36 AMorangy
11/06/2017, 9:41 AM{ p1,p2,p3 -> … }
and it is assignable to functional type with specified number of parameters. There is a short lambda form, without parameter list and ->
, and it is assignable to any functional type. Hence, when there is an overload with different functional type, it is assignable to both, so it results in ambiguity. It’s just you can’t use short form when there are overloads.dasz
11/06/2017, 9:55 AM