1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: fix file partially not fmt, caused by fixed vfmt bug (#17828)

This commit is contained in:
ChAoS_UnItY 2023-03-31 15:22:31 +08:00 committed by GitHub
parent cd6cc65ece
commit ff0adba8a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,19 +31,14 @@ fn func_fn_multi_return_concrete() FnMultiReturn[string, string, string] {
}
}
// vfmt will erase explicit generic type (bug reported in #17773)
// vfmt off
fn test_concrete_function_type_as_generic_type() {
func_fn_concrete()('V')
func_fn_dynamic[string]()('V')
assert func_fn_return_dynamic[string, int]()('100') == 100
s1, s2 := func_fn_multi_return_concrete()('VLang')
assert s1 == 'V'
assert s2 == 'Lang'
}
// vfmt on