v/vlib/v/checker/tests/use_deprecated_function_war...

25 lines
231 B
V
Raw Normal View History

[deprecated]
fn xyz() {
println('hi')
}
[deprecated: 'use foo2 instead']
fn abc() {
println('hi')
}
2020-06-23 16:25:24 +02:00
fn main() {
xyz()
abc()
2020-06-23 16:25:24 +02:00
}
struct S1 {}
[deprecated: 'use bar instead']
fn (s S1) m() {}
fn method() {
s := S1{}
s.m()
}