| Index: pkg/analyzer/test/src/task/dart_test.dart
|
| diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
|
| index 3b81e2687be914c3285d16ff1aa06bdb092b0a75..64901f945e7084be3b1d31949c38dee49cab9129 100644
|
| --- a/pkg/analyzer/test/src/task/dart_test.dart
|
| +++ b/pkg/analyzer/test/src/task/dart_test.dart
|
| @@ -4541,7 +4541,10 @@ typedef F<T extends String>();
|
|
|
| void _assertTypeParameterBound(TypeParameter typeParameter,
|
| String expectedBoundTypeString, String expectedBoundElementName) {
|
| - TypeName boundNode = typeParameter.bound;
|
| + TypeAnnotation bound = typeParameter.bound;
|
| + // TODO(brianwilkerson) Extend this to support function types as bounds.
|
| + expect(bound, new isInstanceOf<TypeName>());
|
| + TypeName boundNode = bound;
|
| Identifier boundName = boundNode.name;
|
| expect(boundNode.type.toString(), expectedBoundTypeString);
|
| expect(boundName.staticType.toString(), expectedBoundTypeString);
|
|
|