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

parser: fix imported interfaces

This commit is contained in:
Alexander Medvednikov
2020-04-30 18:06:14 +02:00
parent 9971c58ca3
commit f1903f3c1f
3 changed files with 14 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
struct Dog {
breed string
}
@@ -28,10 +29,6 @@ fn test_todo() {
else{}
}
interface Speaker {
name() string
speak()
}
fn perform_speak(s Speaker) {
s.speak()
@@ -86,3 +83,8 @@ struct Foo {
speakers []Speaker
}
interface Speaker {
name() string
speak()
}