mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
24 lines
273 B
V
24 lines
273 B
V
interface Depends {
|
|
depends() []Depends
|
|
}
|
|
|
|
struct Signal[T] {
|
|
}
|
|
|
|
fn (x Signal[T]) depends() []Depends {
|
|
return []
|
|
}
|
|
|
|
struct Add[T] {
|
|
a Signal[T]
|
|
b Signal[T]
|
|
}
|
|
|
|
fn (a Add[T]) depends() []Depends {
|
|
return [a.a, a.b]
|
|
}
|
|
|
|
fn test_generics_interface_decl() {
|
|
assert true
|
|
}
|