f79ed9301b
Now that dart2js only takes migrated files as input, all tests should use the current language version. Change-Id: I6c84850f5786aeac04154b67bd7a3c19083c8bba Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345344 Reviewed-by: Nate Biggs <natebiggs@google.com> Commit-Queue: Mayank Patke <fishythefish@google.com>
39 lines
909 B
Dart
39 lines
909 B
Dart
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/*member: Class.:invoke*/
|
|
class Class {
|
|
// The type parameter is never provided but needed nonetheless.
|
|
/*member: Class.method1:invoke=(0)*/
|
|
method1<S>([a]) => S;
|
|
|
|
/*member: Class.method2:invoke=<1>(0)*/
|
|
method2<S>([a]) => S;
|
|
|
|
/*member: Class.method3:invoke=<1>(0)*/
|
|
method3<S>([a]) => S;
|
|
|
|
/*member: Class.method4:invoke=(1)*/
|
|
method4<S>([a]) => S;
|
|
|
|
/*member: Class.method5:invoke*/
|
|
method5<S>([a]) => S;
|
|
|
|
/*member: Class.method6:invoke*/
|
|
method6<S>([a]) => S;
|
|
}
|
|
|
|
/*member: main:invoke*/
|
|
main() {
|
|
dynamic c = Class();
|
|
c.method1();
|
|
c.method2<int>();
|
|
c.method3();
|
|
c.method3<int>();
|
|
c.method4(0);
|
|
c.method5<int>(0);
|
|
c.method6(0);
|
|
c.method6<int>(0);
|
|
}
|