From 8cfdfc92fcf41f5db6d30015b20457ca64f0c3ce Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 8 Mar 2025 13:39:40 +0000 Subject: Support method calls from other namespaces (without Wasm support) --- examples/41-generic-struct-methods/src/HelloWorld.shed | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 examples/41-generic-struct-methods/src/HelloWorld.shed (limited to 'examples/41-generic-struct-methods/src/HelloWorld.shed') diff --git a/examples/41-generic-struct-methods/src/HelloWorld.shed b/examples/41-generic-struct-methods/src/HelloWorld.shed deleted file mode 100644 index a4e808e1..00000000 --- a/examples/41-generic-struct-methods/src/HelloWorld.shed +++ /dev/null @@ -1,11 +0,0 @@ -pub fun main() ! Io -> Unit { - val messageBox = Box("hello, world"); - - print!(messageBox.get()); -} - -struct Box[T](value: T) { - fun get(this) -> T { - this.value - } -} -- cgit v1.2.3