mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:49:47 +00:00
7dff15917e
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>
17 lines
405 B
Dart
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);
|
|
}
|