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:
parent
cd6cc65ece
commit
ff0adba8a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user