mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Bail out of inference from default arguments if there
is no parameter list for the callee. This can happen when the callee is a closure that has been assigned to a variable.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-type-inference-from-defaults
|
||||
|
||||
func takeIntToInt(_ f: (Int) -> Int) { }
|
||||
func takeIntIntToInt(_ f: (Int, Int) -> Int) { }
|
||||
|
||||
Reference in New Issue
Block a user