1. Describe the bug
When calling Function DocumentSendingProfile.Send(ReportUsage, RecordVariant, DocumentNo, CustomerNo, DocName, CustomerFieldNo, DocumentFieldNo); with BC 19 Cloud app the code enters Function: SendToDiskForCust on Table: Report Selection which is aScope('OnPrem') function.
My app.json target is Cloud:

2. To Reproduce
- Go to 'app.json' and include property
"target": "Cloud"
- Add a breakpoint on Table:
Report Selection Function: SendToDiskForCust
- Call function
DocumentSendingProfile.Send(ReportUsage, RecordVariant, DocumentNo, CustomerNo, DocName, CustomerFieldNo, DocumentFieldNo);
- The breakpoint on Table:
Report Selection Function: SendToDiskForCust should be triggered, which is a Scope('OnPrem') function.
3. Expected behavior
I would expect a compile error like this one:

4. Actual behavior
The actual behavior runs function ``DocumentSendingProfile.Send();``` and enters a OnPrem Function:

5. Versions:
- AL Language: v8.2.552672
- Visual Studio Code: 1.63
- Business Central: BC19 Cloud
1. Describe the bug
When calling Function
DocumentSendingProfile.Send(ReportUsage, RecordVariant, DocumentNo, CustomerNo, DocName, CustomerFieldNo, DocumentFieldNo);with BC 19 Cloud app the code enters Function:SendToDiskForCuston Table:Report Selectionwhich is aScope('OnPrem') function.My app.json target is Cloud:

2. To Reproduce
"target": "Cloud"Report SelectionFunction:SendToDiskForCustDocumentSendingProfile.Send(ReportUsage, RecordVariant, DocumentNo, CustomerNo, DocName, CustomerFieldNo, DocumentFieldNo);Report SelectionFunction:SendToDiskForCustshould be triggered, which is a Scope('OnPrem') function.3. Expected behavior

I would expect a compile error like this one:
4. Actual behavior

The actual behavior runs function ``DocumentSendingProfile.Send();``` and enters a OnPrem Function:
5. Versions: