File tree 2 files changed +1
-8
lines changed
test/Interop/Cxx/operators
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2191,11 +2191,7 @@ namespace {
2191
2191
MD->overwriteAccess (AccessLevel::Private);
2192
2192
} else if (cxxOperatorKind ==
2193
2193
clang::OverloadedOperatorKind::OO_PlusPlus) {
2194
- auto selfTy = result->getSelfInterfaceType ();
2195
- auto returnTy =
2196
- MD->getResultInterfaceType ()->getAnyPointerElementType ();
2197
- if (cxxMethod->param_empty () &&
2198
- selfTy->getCanonicalType () == returnTy->getCanonicalType ()) {
2194
+ if (cxxMethod->param_empty ()) {
2199
2195
// This is a pre-increment operator. We synthesize a
2200
2196
// non-mutating function called `successor() -> Self`.
2201
2197
FuncDecl *successorFunc = synthesizer.makeSuccessorFunc (MD);
Original file line number Diff line number Diff line change @@ -43,6 +43,3 @@ let diffTypesResultDoubleByVal: Double = diffTypesArrayByVal[0.5]
43
43
44
44
let postIncrement = HasPostIncrementOperator ( )
45
45
postIncrement. successor ( ) // expected-error {{value of type 'HasPostIncrementOperator' has no member 'successor'}}
46
-
47
- let anotherReturnType = HasPreIncrementOperatorWithAnotherReturnType ( )
48
- anotherReturnType. successor ( ) // expected-error {{value of type 'HasPreIncrementOperatorWithAnotherReturnType' has no member 'successor'}}
You can’t perform that action at this time.
0 commit comments