Skip to content

Commit 4ef9310

Browse files
authored
Fix return type calculation for typedefs (#2038)
* Fix typedef problem? * Reenable sdk analyzer test
1 parent 746fa92 commit 4ef9310

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ dart:
66
env:
77
- DARTDOC_BOT=main
88
- DARTDOC_BOT=flutter
9-
# Disable pending #2036
10-
#- DARTDOC_BOT=sdk-analyzer
9+
- DARTDOC_BOT=sdk-analyzer
1110
- DARTDOC_BOT=packages
1211
- DARTDOC_BOT=sdk-docs
1312
script: ./tool/travis.sh

lib/src/element_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class CallableGenericTypeAliasElementType extends ParameterizedElementType
447447
ElementType get returnType {
448448
if (_returnType == null) {
449449
_returnType = ElementType.from(
450-
returnElement.modelType.type, library, packageGraph, this);
450+
type.returnType, library, packageGraph, this);
451451
}
452452
return _returnType;
453453
}

0 commit comments

Comments
 (0)