| Index: pkg/analyzer/lib/src/summary/link.dart
|
| diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
|
| index 87d02abedcd47ab7e5ffb7f8b7c6b812888fc293..1b3f15fa5287835fb07461b801505ccd823d5cdb 100644
|
| --- a/pkg/analyzer/lib/src/summary/link.dart
|
| +++ b/pkg/analyzer/lib/src/summary/link.dart
|
| @@ -2048,7 +2048,9 @@ class ExprTypeComputer {
|
|
|
| void _doMakeUntypedList() {
|
| int numItems = _getNextInt();
|
| - DartType itemType = _popList(numItems).reduce(_leastUpperBound);
|
| + DartType itemType = numItems == 0
|
| + ? DynamicTypeImpl.instance
|
| + : _popList(numItems).reduce(_leastUpperBound);
|
| itemType = _dynamicIfNull(itemType);
|
| stack.add(typeProvider.listType.instantiate(<DartType>[itemType]));
|
| }
|
|
|