Created
October 9, 2019 22:17
-
-
Save redvers/d58a916eabd47fde896cac26cc5c07fb 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) => | |
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