File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1079,7 +1079,7 @@ class MissingMemberFailure : public InvalidMemberRefFailure {
1079
1079
// / e.g
1080
1080
// / ```swift
1081
1081
// / let tuple: (Int, Int) = (0, 0)
1082
- // / _ = tuple[0]
1082
+ // / _ = tuple[0] // -> tuple.0.
1083
1083
// / ```
1084
1084
bool diagnoseForSubscriptMemberWithTupleBase () const ;
1085
1085
Original file line number Diff line number Diff line change 2967
2967
value of type %0 has no property or method named 'subscript'; did you
2968
2968
mean to use the subscript operator?
2969
2969
2970
+ - id : could_not_find_subscript_member_tuple
2971
+ msg : >-
2972
+ cannot access element using subscript for tuple type %0;
2973
+ use '.' notation instead
2974
+
2975
+ - id : could_not_find_subscript_member_tuple_did_you_mean_use_dot
2976
+ msg : >-
2977
+ cannot access element using subscript for tuple type %0;
2978
+ did you mean to use '.%1'?
2979
+
2970
2980
- id : could_not_find_enum_case
2971
2981
msg : >-
2972
2982
enum type %0 has no case %1; did you mean %2?
You can’t perform that action at this time.
0 commit comments