File tree 4 files changed +16
-2
lines changed 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class AnalysisDriver implements AnalysisDriverGeneric {
94
94
/**
95
95
* The version of data format, should be incremented on every format change.
96
96
*/
97
- static const int DATA_VERSION = 52 ;
97
+ static const int DATA_VERSION = 53 ;
98
98
99
99
/**
100
100
* The number of exception contexts allowed to write. Once this field is
Original file line number Diff line number Diff line change @@ -1371,7 +1371,11 @@ class _ReferenceInfo {
1371
1371
} else {
1372
1372
// For a type that refers to a generic executable, the type arguments are
1373
1373
// not supposed to include the arguments to the executable itself.
1374
- numTypeArguments = enclosing? .numTypeParameters ?? 0 ;
1374
+ if (element is MethodElementHandle && ! element.isStatic) {
1375
+ numTypeArguments = enclosing? .numTypeParameters ?? 0 ;
1376
+ } else {
1377
+ numTypeArguments = 0 ;
1378
+ }
1375
1379
computer = () => this .element as FunctionTypedElement ;
1376
1380
}
1377
1381
// TODO(paulberry): Is it a bug that we have to pass `false` for
Original file line number Diff line number Diff line change @@ -3899,6 +3899,15 @@ class C<T> {
3899
3899
expectStaticInvokeType ('m();' , '() → T' );
3900
3900
}
3901
3901
3902
+ test_issue32396 () async {
3903
+ await resolveTestUnit (r'''
3904
+ class C<E> {
3905
+ static T g<T>(T e) => null;
3906
+ static final h = g;
3907
+ }
3908
+ ''' );
3909
+ }
3910
+
3902
3911
test_notInstantiatedBound_direct_class_class () async {
3903
3912
String code = r'''
3904
3913
class A<T extends int> {}
Original file line number Diff line number Diff line change @@ -9917,6 +9917,7 @@ unit: foo.dart
9917
9917
}
9918
9918
9919
9919
test_unused_type_parameter () async {
9920
+ shouldCompareLibraryElements = false ;
9920
9921
var library = await checkLibrary ('''
9921
9922
class C<T> {
9922
9923
void f() {}
You can’t perform that action at this time.
0 commit comments