-
-
Save beardhatcode/f836b5a2560590c38d2c474a44fbc157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor Main | |
new create(env: Env) => | |
env.out.print("Hello, world!") | |
class Wombat | |
let name: String | |
var _hunger_level: U64 | |
new create(name': String) => | |
name = name' | |
_hunger_level = 0 | |
new hungry(name': String, hunger': U64) => | |
name = name' | |
_hunger_level = hunger' | |
class Aardvark | |
var buddy: Wombat iso = Wombat("Lieselotte") as Wombat iso | |
fun test(a: Wombat iso) => | |
var b: Wombat iso = buddy = consume a // Allowed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment