| Index: pkg/analyzer/test/generated/strong_mode_test.dart
|
| diff --git a/pkg/analyzer/test/generated/strong_mode_test.dart b/pkg/analyzer/test/generated/strong_mode_test.dart
|
| index d0042cdf8fd220cef5fcabe2e09148ae09022427..f2eb44a2cfd9b8b404d6bfb516ee918c04a46ac6 100644
|
| --- a/pkg/analyzer/test/generated/strong_mode_test.dart
|
| +++ b/pkg/analyzer/test/generated/strong_mode_test.dart
|
| @@ -2206,9 +2206,12 @@ main() {
|
| }
|
|
|
| test_genericFunction_parameter() async {
|
| - await resolveTestUnit(r'''
|
| + await resolveTestUnit(
|
| + r'''
|
| void g(/*=T*/ f/*<T>*/(/*=T*/ x)) {}
|
| -''');
|
| +''',
|
| + noErrors: false // TODO(paulberry): remove when dartbug.com/28515 fixed.
|
| + );
|
| expectFunctionType('f', '<T>(T) → T',
|
| elementTypeParams: '[T]', typeFormals: '[T]');
|
| SimpleIdentifier f = findIdentifier('f');
|
| @@ -2328,7 +2331,8 @@ main() {
|
| }
|
|
|
| test_genericMethod_functionExpressionInvocation_explicit() async {
|
| - await resolveTestUnit(r'''
|
| + await resolveTestUnit(
|
| + r'''
|
| class C<E> {
|
| /*=T*/ f/*<T>*/(/*=T*/ e) => null;
|
| static /*=T*/ g/*<T>*/(/*=T*/ e) => null;
|
| @@ -2350,7 +2354,9 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| var localCall = (lf)/*<int>*/(3);
|
| var paramCall = (pf)/*<int>*/(3);
|
| }
|
| -''');
|
| +''',
|
| + noErrors: false // TODO(paulberry): remove when dartbug.com/28515 fixed.
|
| + );
|
| expectIdentifierType('methodCall', "int");
|
| expectIdentifierType('staticCall', "int");
|
| expectIdentifierType('staticFieldCall', "int");
|
| @@ -2362,7 +2368,8 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| }
|
|
|
| test_genericMethod_functionExpressionInvocation_inferred() async {
|
| - await resolveTestUnit(r'''
|
| + await resolveTestUnit(
|
| + r'''
|
| class C<E> {
|
| /*=T*/ f/*<T>*/(/*=T*/ e) => null;
|
| static /*=T*/ g/*<T>*/(/*=T*/ e) => null;
|
| @@ -2384,7 +2391,9 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| var localCall = (lf)(3);
|
| var paramCall = (pf)(3);
|
| }
|
| -''');
|
| +''',
|
| + noErrors: false // TODO(paulberry): remove when dartbug.com/28515 fixed.
|
| + );
|
| expectIdentifierType('methodCall', "int");
|
| expectIdentifierType('staticCall', "int");
|
| expectIdentifierType('staticFieldCall', "int");
|
| @@ -2396,7 +2405,8 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| }
|
|
|
| test_genericMethod_functionInvocation_explicit() async {
|
| - await resolveTestUnit(r'''
|
| + await resolveTestUnit(
|
| + r'''
|
| class C<E> {
|
| /*=T*/ f/*<T>*/(/*=T*/ e) => null;
|
| static /*=T*/ g/*<T>*/(/*=T*/ e) => null;
|
| @@ -2416,7 +2426,9 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| var localCall = lf/*<int>*/(3);
|
| var paramCall = pf/*<int>*/(3);
|
| }
|
| -''');
|
| +''',
|
| + noErrors: false // TODO(paulberry): remove when dartbug.com/28515 fixed.
|
| + );
|
| expectIdentifierType('methodCall', "int");
|
| expectIdentifierType('staticCall', "int");
|
| expectIdentifierType('staticFieldCall', "int");
|
| @@ -2427,7 +2439,8 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| }
|
|
|
| test_genericMethod_functionInvocation_inferred() async {
|
| - await resolveTestUnit(r'''
|
| + await resolveTestUnit(
|
| + r'''
|
| class C<E> {
|
| /*=T*/ f/*<T>*/(/*=T*/ e) => null;
|
| static /*=T*/ g/*<T>*/(/*=T*/ e) => null;
|
| @@ -2447,7 +2460,9 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| var localCall = lf(3);
|
| var paramCall = pf(3);
|
| }
|
| -''');
|
| +''',
|
| + noErrors: false // TODO(paulberry): remove when dartbug.com/28515 fixed.
|
| + );
|
| expectIdentifierType('methodCall', "int");
|
| expectIdentifierType('staticCall', "int");
|
| expectIdentifierType('staticFieldCall', "int");
|
| @@ -2692,7 +2707,8 @@ C toSpan(dynamic element) {
|
| }
|
|
|
| test_genericMethod_tearoff() async {
|
| - await resolveTestUnit(r'''
|
| + await resolveTestUnit(
|
| + r'''
|
| class C<E> {
|
| /*=T*/ f/*<T>*/(E e) => null;
|
| static /*=T*/ g/*<T>*/(/*=T*/ e) => null;
|
| @@ -2712,7 +2728,9 @@ void test/*<S>*/(/*=T*/ pf/*<T>*/(/*=T*/ e)) {
|
| var localTearOff = lf;
|
| var paramTearOff = pf;
|
| }
|
| -''');
|
| +''',
|
| + noErrors: false // TODO(paulberry): remove when dartbug.com/28515 fixed.
|
| + );
|
| expectIdentifierType('methodTearOff', "<T>(int) → T");
|
| expectIdentifierType('staticTearOff', "<T>(T) → T");
|
| expectIdentifierType('staticFieldTearOff', "<T>(T) → T");
|
|
|