blob: 16852f097bc442c7bbc02ba4572e1fe39765a81c [file] [log] [blame]
// Copyright (c) 2018, 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.
// @dart = 2.7
// dart2jsOptions=--omit-implicit-checks
import 'package:expect/expect.dart';
import 'dart:_internal' show extractTypeArguments;
class C<T> {}
main() {
test(new C<int>(), int);
test(new C<String>(), String);
}
test(dynamic a, T) {
Expect.equals(T, extractTypeArguments<C>(a, <T>() => T));
}