mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:51:18 +00:00
79f0df2cc8
R=karlklose@google.com Committed: https://code.google.com/p/dart/source/detail?r=42392 Reverted: https://code.google.com/p/dart/source/detail?r=42408 Review URL: https://codereview.chromium.org//802653005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42435 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
479 B
Dart
17 lines
479 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 Tester<T> {
|
|
testGenericType(x) {
|
|
return x is T;
|
|
}
|
|
}
|
|
|
|
main() {
|
|
// The Dart Object type is special in that it doesn't have any superclass.
|
|
Expect.isTrue(new Tester<Object>().testGenericType(new Object()));
|
|
}
|