Skip to content

Commit 365e034

Browse files
committed
Add TODO for bad cast
1 parent 9825462 commit 365e034

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/element_type.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class TypeParameterElementType extends DefinedElementType {
208208
ClassElement get _boundClassElement => type.element;
209209

210210
@override
211+
// TODO(jcollins-g): This is wrong; bound is not always an InterfaceType.
211212
InterfaceType get _interfaceType => (type as TypeParameterType).bound;
212213
}
213214

0 commit comments

Comments
 (0)