microsoft / sql-server-samples

Azure Data SQL Samples - Official Microsoft GitHub Repository containing code samples for SQL Server, Azure SQL, Azure Synapse, and Azure SQL Edge
Other
9.77k stars 8.79k forks source link

Tell me the main error which is occurring again and again #1171

Closed Karambir06 closed 10 months ago

Karambir06 commented 1 year ago

For reference swift has a pretty clear message:

Cannot pass immutable value as inout argument: literals are not mutable

To repro:

func test(i : inout Int) {
    print(i);
}

func foo() {
    test(i: 3)
}

Originally posted by @ssteinbach in https://github.com/ziglang/zig/issues/16069#issuecomment-1595766910

Karambir06 commented 1 year ago

Again compile this code

Karambir06 commented 1 year ago

With Visual Studio code with blackbox ai extension. You will definitely find a sol