Re:Dart 1.24: Faster edit-refresh cycle on the web and new f...
by mezoni on Friday June 16, 2017 @01:09PM
(#14570694)
What a problem?
In a second case, after checking value, type of variable does not changed.
// Vraible "string" still have a non-nullble type here
// What problem you found here?
// Non-nullble type cannot be null even only because analyzed code.
print(string.length); // Don't know it's non-null here.
// This is dead code, if you don't know
if (string == null) return;
In a second case, after checking value, type of variable does not changed.
// Vraible "string" still have a non-nullble type here // What problem you found here? // Non-nullble type cannot be null even only because analyzed code. print(string.length); // Don't know it's non-null here.
// This is dead code, if you don't know if (string == null) return;