Skip to content

Commit 866835d

Browse files
committed
[Diagnostics] NFC: Add a TODO as a reminder about current diagnostic node limitations
1 parent f7ef6d4 commit 866835d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/AutoDiff/Sema/differentiable_func_type.swift

+4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ func inferredConformancesGeneric<T, U>(_: @differentiable (Vector<T>) -> Vector<
186186
func inferredConformancesGenericLinear<T, U>(_: @differentiable(linear) (Vector<T>) -> Vector<U>) {}
187187

188188
func nondiff(x: Vector<Int>) -> Vector<Int> {}
189+
190+
// TODO(diagnostics): Ambiguity notes for two following calls should talk about `T` and `U` both not conforming to `Differentiable`
191+
// but we currently have to way to coalesce notes multiple fixes in to a single note.
192+
189193
// expected-error @+1 {{no exact matches in call to global function 'inferredConformancesGeneric'}}
190194
inferredConformancesGeneric(nondiff)
191195
// expected-error @+1 {{no exact matches in call to global function 'inferredConformancesGenericLinear'}}

0 commit comments

Comments
 (0)