Skip to content

Instantly share code, notes, and snippets.

@redvers
Created October 9, 2019 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redvers/d58a916eabd47fde896cac26cc5c07fb to your computer and use it in GitHub Desktop.
Save redvers/d58a916eabd47fde896cac26cc5c07fb to your computer and use it in GitHub Desktop.
actor Main
new create(env: Env) =>
let y: U32 val = 1
// let y31: U32 val = y.shr(32) // (compile fail) shift amount greater than type width
// let unk = y.shr(32) // (compile fail) shift amount greater than type width
// env.out.print(y.shr(32)) // (compile fail) argument not a subtype of parameter
env.out.print(y.shr(33).string()) // Compiler Dumps Core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment