aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/interface_implementing_interface.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/interface_implementing_interface.vv')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/interface_implementing_interface.vv16
1 files changed, 16 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/interface_implementing_interface.vv b/v_windows/v/old/vlib/v/checker/tests/interface_implementing_interface.vv
new file mode 100644
index 0000000..a71e9ea
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/interface_implementing_interface.vv
@@ -0,0 +1,16 @@
+interface Thing {
+ kind string
+}
+
+interface Animal {
+ kind string
+}
+
+struct Dog {
+ kind string = 'labrador'
+}
+
+dog := Dog{}
+animal := Animal(dog)
+thing := Thing(animal)
+println(thing)