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

tests: run vfmt over some of the tests in vlib/v/tests (#9455)

This commit is contained in:
Lukas Neubert
2021-03-27 18:29:57 +01:00
committed by GitHub
parent 3b166d8327
commit 4a10514081
156 changed files with 1573 additions and 945 deletions

View File

@@ -7,11 +7,11 @@ interface Animal {
}
fn (a Animal) info() string {
return "I'm a ${a.breed} ${typeof(a).name}"
return "I'm a $a.breed ${typeof(a).name}"
}
fn new_animal(breed string) Animal {
return &Cat{ breed }
return &Cat{breed}
}
fn test_methods_on_interfaces() {