Use a special 'auto' type in type inference (#658)

This commit is contained in:
Daniel Wirtz
2019-06-12 13:54:07 +02:00
committed by GitHub
parent 334d944f67
commit d4313f1ed8
10 changed files with 483 additions and 460 deletions

View File

@ -129,3 +129,14 @@ assert(ui == 1);
ui = 255 % 255;
assert(ui == 0);
// inferring global type from load should still retain T
var ri = load<i8>(0);
assert(ri instanceof i8);
// inferring local type from load should still retain T
function testLocalRetain(): void {
var ri = load<i8>(0);
assert(ri instanceof i8);
}
testLocalRetain();