Skip to content

Commit 714149a

Browse files
Googlersrawlins
Googler
authored andcommitted
Stop using deprecated DartType.displayName
We would like to remove it: https://dart-review.googlesource.com/c/sdk/+/251783 PiperOrigin-RevId: 461522931
1 parent c2034f4 commit 714149a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ class _MockClassInfo {
12311231
// These "List" types from dart:typed_data are "non-subtypeable", but they
12321232
// have predicatble constructors; each has an unnamed constructor which
12331233
// takes a single int argument.
1234-
return referImported(type.displayName, 'dart:typed_data')
1234+
return referImported(type.element.name, 'dart:typed_data')
12351235
.call([literalNum(0)]);
12361236
// TODO(srawlins): Do other types from typed_data have a "non-subtypeable"
12371237
// restriction as well?

0 commit comments

Comments
 (0)