| Index: pkg/analyzer/test/generated/resolver_test.dart
|
| diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
|
| index 902744058eeeb20a8d4857e958e81e1df47c2253..6f7d3db9f825009422ab20302e77beba2d4819c4 100644
|
| --- a/pkg/analyzer/test/generated/resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/resolver_test.dart
|
| @@ -12025,6 +12025,22 @@ main() {
|
| expect(declaration.initializer.propagatedType, isNull);
|
| }
|
|
|
| + void test_pseudoGeneric_max_doubleInt() {
|
| + String code = r'''
|
| +import 'dart:math';
|
| +main() {
|
| + var foo = max(1.0, 2);
|
| +}
|
| +''';
|
| + _resolveTestUnit(code);
|
| +
|
| + SimpleIdentifier identifier = _findIdentifier('foo');
|
| + VariableDeclaration declaration =
|
| + identifier.getAncestor((node) => node is VariableDeclaration);
|
| + expect(declaration.initializer.staticType.name, 'num');
|
| + expect(declaration.initializer.propagatedType, isNull);
|
| + }
|
| +
|
| void test_pseudoGeneric_then() {
|
| String code = r'''
|
| import 'dart:async';
|
|
|