mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 18:51:43 +00:00
Basic type inference
This commit is contained in:
18
tests/compiler/infer-type.ts
Normal file
18
tests/compiler/infer-type.ts
Normal file
@ -0,0 +1,18 @@
|
||||
const i = 10;
|
||||
i;
|
||||
|
||||
const I = 0x100000000;
|
||||
I;
|
||||
|
||||
const F = 1.5;
|
||||
F;
|
||||
|
||||
function locals(): void {
|
||||
let li = 10;
|
||||
let lI = 0x100000000;
|
||||
let lF = 1.5;
|
||||
let ai = i;
|
||||
let aI = I;
|
||||
let aF = F;
|
||||
}
|
||||
locals();
|
Reference in New Issue
Block a user