dart-sdk/tests/language/type_object/reify_type_variable_test.dart
Robert Nystrom 7dff15917e Migrate language_2/type_object to NNBD.
Change-Id: I20caf30534b610f7a51dcdd581c9a4210e068005
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151629
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
2020-06-19 01:18:44 +00:00

17 lines
405 B
Dart

// Copyright (c) 2014, 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.
import "package:expect/expect.dart";
class Foo<T> {
reify() {
return T;
}
}
main() {
Expect.equals(int, new Foo<int>().reify());
Expect.equals(Foo, new Foo().runtimeType);
}