File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -3223,6 +3223,20 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
32233223 if (contractType && contractType->isSuper ())
32243224 requiredLookup = VirtualLookup::Super;
32253225 }
3226+
3227+ if (
3228+ funType->kind () == FunctionType::Kind::Send ||
3229+ funType->kind () == FunctionType::Kind::Transfer
3230+ )
3231+ m_errorReporter.warning (
3232+ 9207_error,
3233+ _memberAccess.location (),
3234+ fmt::format (
3235+ " '{}' is deprecated and scheduled for removal in the next breaking version (0.9). "
3236+ " Use 'call{{value: <amount>}}(\"\" )' instead." ,
3237+ funType->kind () == FunctionType::Kind::Send ? " send" : " transfer"
3238+ )
3239+ );
32263240 }
32273241
32283242 annotation.requiredLookup = requiredLookup;
You can’t perform that action at this time.
0 commit comments