checker: add a test for the single letter receiver
parent
68dab101d9
commit
d86cb67eda
|
@ -95,7 +95,7 @@ fn main() {
|
||||||
args := os.args.clone()
|
args := os.args.clone()
|
||||||
args_string := args[1..].join(' ')
|
args_string := args[1..].join(' ')
|
||||||
cmd_prefix := args_string.all_before('test-self')
|
cmd_prefix := args_string.all_before('test-self')
|
||||||
title := 'testing all fixed tests'
|
title := 'testing all tests'
|
||||||
all_test_files := os.walk_ext(os.join_path(vroot, 'vlib'), '_test.v')
|
all_test_files := os.walk_ext(os.join_path(vroot, 'vlib'), '_test.v')
|
||||||
testing.eheader(title)
|
testing.eheader(title)
|
||||||
mut tsession := testing.new_test_session(cmd_prefix)
|
mut tsession := testing.new_test_session(cmd_prefix)
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
vlib/v/checker/tests/receiver_unknown_type_single_letter.vv:1:5: error: unknown type `A`
|
||||||
|
1 | fn (p A) foo() {}
|
||||||
|
| ~~~
|
|
@ -0,0 +1,2 @@
|
||||||
|
fn (p A) foo() {}
|
||||||
|
|
Loading…
Reference in New Issue