Skip to content

Commit 3cdb2a1

Browse files
committed
[Tests] NFC: Add a FIXME about use of <<error type>> in a diagnostic
(cherry picked from commit 4c38d72)
1 parent 7e09101 commit 3cdb2a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

validation-test/Sema/type_checker_crashers_fixed/rdar116122902.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ struct Test {
1414

1515
mutating func test<T>(v: Value<T>) {
1616
_ = {
17+
// FIXME(diagnostics): We need to figure out how to avoid mentioning <<error type>> in the second diagnostic
1718
self.tuple = (v, 42)
1819
// expected-error@-1 {{cannot assign value of type '(Value<T>, Int)' to type '(value: any AnyValue, id: Int)'}}
1920
// expected-error@-2 {{generic struct 'Value' requires the types 'T' and '<<error type>>' be equivalent}}

0 commit comments

Comments
 (0)