Closed
Description
Steps to reproduce
Create a flutter project and run flutter web on debug mode with this code:
void main() {
String? fooValue = 'hello world';
if (fooValue case final String fooValue) {
print(fooValue);
}
}
And this is it's js result:
main.main = function main$() {
let fooValue = "hello world";
{
let fooValue = null;
let t$36$350$350 = fooValue;
if (typeof t$36$350$350 == 'string') {
fooValue = t$36$350$350;
{
core.print(fooValue);
}
}
}
};
So it will not print 'hello world'
.