This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,6 @@
|
||||
# probe: what does a conversion to a narrower whole-number type keep? (the low bits: Int8(300) is 44, UInt8(-1) is 255)
|
||||
# expect-stdout: 44 44 255 4464
|
||||
def main():
|
||||
var n = 300
|
||||
var m = -1
|
||||
print(Int8(n), UInt8(n), UInt8(m), Int16(70000))
|
||||
Reference in new issue
Block a user