We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2cd914 commit 8d24f7eCopy full SHA for 8d24f7e
pkg/dev_compiler/lib/src/kernel/compiler.dart
@@ -7173,7 +7173,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
7173
if (jsExpr is js_ast.LiteralString && jsExpr.valueWithoutQuotes.isEmpty) {
7174
continue;
7175
}
7176
- var type = e.getStaticType(_staticTypeContext);
+ var type = e.getStaticType(_staticTypeContext).extensionTypeErasure;
7177
if (DartTypeEquivalence(_coreTypes, ignoreTopLevelNullability: true)
7178
.areEqual(type, _coreTypes.stringNonNullableRawType) &&
7179
!isNullable(e)) {
0 commit comments