|
|
@@ -133,24 +133,48 @@ fn Run1(a: i32) {}
|
|
|
fn Run2(a: i32, b: i32) {}
|
|
|
|
|
|
fn Main() {
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE+2]]:7: No matching callable was found.
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE-6]]:1: Function cannot be used: Received 1 argument(s), but require 0 argument(s).
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE+6]]:7: No matching callable was found.
|
|
|
+ // CHECK:STDERR: Run0(1);
|
|
|
+ // CHECK:STDERR: ^
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE-8]]:1: Function cannot be used: Received 1 argument(s), but require 0 argument(s).
|
|
|
+ // CHECK:STDERR: fn Run0() {}
|
|
|
+ // CHECK:STDERR: ^
|
|
|
Run0(1);
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE+2]]:7: No matching callable was found.
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE-9]]:1: Function cannot be used: Received 2 argument(s), but require 0 argument(s).
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE+6]]:7: No matching callable was found.
|
|
|
+ // CHECK:STDERR: Run0(0, 1);
|
|
|
+ // CHECK:STDERR: ^
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE-15]]:1: Function cannot be used: Received 2 argument(s), but require 0 argument(s).
|
|
|
+ // CHECK:STDERR: fn Run0() {}
|
|
|
+ // CHECK:STDERR: ^
|
|
|
Run0(0, 1);
|
|
|
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE+2]]:7: No matching callable was found.
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE-12]]:1: Function cannot be used: Received 0 argument(s), but require 1 argument(s).
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE+6]]:7: No matching callable was found.
|
|
|
+ // CHECK:STDERR: Run1();
|
|
|
+ // CHECK:STDERR: ^
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE-22]]:1: Function cannot be used: Received 0 argument(s), but require 1 argument(s).
|
|
|
+ // CHECK:STDERR: fn Run1(a: i32) {}
|
|
|
+ // CHECK:STDERR: ^
|
|
|
Run1();
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE+2]]:7: No matching callable was found.
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE-15]]:1: Function cannot be used: Received 2 argument(s), but require 1 argument(s).
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE+6]]:7: No matching callable was found.
|
|
|
+ // CHECK:STDERR: Run1(0, 1);
|
|
|
+ // CHECK:STDERR: ^
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE-29]]:1: Function cannot be used: Received 2 argument(s), but require 1 argument(s).
|
|
|
+ // CHECK:STDERR: fn Run1(a: i32) {}
|
|
|
+ // CHECK:STDERR: ^
|
|
|
Run1(0, 1);
|
|
|
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE+2]]:7: No matching callable was found.
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE-18]]:1: Function cannot be used: Received 0 argument(s), but require 2 argument(s).
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE+6]]:7: No matching callable was found.
|
|
|
+ // CHECK:STDERR: Run2();
|
|
|
+ // CHECK:STDERR: ^
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE-36]]:1: Function cannot be used: Received 0 argument(s), but require 2 argument(s).
|
|
|
+ // CHECK:STDERR: fn Run2(a: i32, b: i32) {}
|
|
|
+ // CHECK:STDERR: ^
|
|
|
Run2();
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE+2]]:7: No matching callable was found.
|
|
|
- // CHECK:STDERR: fail_param_count.carbon:[[@LINE-21]]:1: Function cannot be used: Received 1 argument(s), but require 2 argument(s).
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE+6]]:7: No matching callable was found.
|
|
|
+ // CHECK:STDERR: Run2(0);
|
|
|
+ // CHECK:STDERR: ^
|
|
|
+ // CHECK:STDERR: fail_param_count.carbon:[[@LINE-43]]:1: Function cannot be used: Received 1 argument(s), but require 2 argument(s).
|
|
|
+ // CHECK:STDERR: fn Run2(a: i32, b: i32) {}
|
|
|
+ // CHECK:STDERR: ^
|
|
|
Run2(0);
|
|
|
}
|