| Index: pkg/analyzer/test/src/dart/element/element_test.dart
|
| diff --git a/pkg/analyzer/test/src/dart/element/element_test.dart b/pkg/analyzer/test/src/dart/element/element_test.dart
|
| index 5c691e32c5e920c722fad008f15a6ce339eabdf9..5bc729587bfbe6d64b68ce085d834537c6230c33 100644
|
| --- a/pkg/analyzer/test/src/dart/element/element_test.dart
|
| +++ b/pkg/analyzer/test/src/dart/element/element_test.dart
|
| @@ -1819,8 +1819,8 @@ class FunctionTypeImplTest extends EngineTestCase {
|
| // () -> B <: () -> A
|
| ClassElement a = ElementFactory.classElement2("A");
|
| ClassElement b = ElementFactory.classElement("B", a.type);
|
| - FunctionType t = ElementFactory.functionElement2("t", a).type;
|
| - FunctionType s = ElementFactory.functionElement2("s", b).type;
|
| + FunctionType t = ElementFactory.functionElement2("t", a.type).type;
|
| + FunctionType s = ElementFactory.functionElement2("s", b.type).type;
|
| expect(t.isSubtypeOf(s), isTrue);
|
| expect(s.isSubtypeOf(t), isTrue);
|
| }
|
| @@ -1828,10 +1828,10 @@ class FunctionTypeImplTest extends EngineTestCase {
|
| void test_isSubtypeOf_returnType_tNotAssignableToS() {
|
| // ! () -> A <: () -> B
|
| FunctionType t = ElementFactory
|
| - .functionElement2("t", ElementFactory.classElement2("A"))
|
| + .functionElement2("t", ElementFactory.classElement2("A").type)
|
| .type;
|
| FunctionType s = ElementFactory
|
| - .functionElement2("s", ElementFactory.classElement2("B"))
|
| + .functionElement2("s", ElementFactory.classElement2("B").type)
|
| .type;
|
| expect(t.isSubtypeOf(s), isFalse);
|
| }
|
|
|