| Index: tests/language_strong/generic_methods_simple_as_expression_test.dart
|
| diff --git a/tests/language_strong/generic_methods_simple_as_expression_test.dart b/tests/language_strong/generic_methods_simple_as_expression_test.dart
|
| deleted file mode 100644
|
| index d6b3c48c21461d058222a3c8399af6234f5b1515..0000000000000000000000000000000000000000
|
| --- a/tests/language_strong/generic_methods_simple_as_expression_test.dart
|
| +++ /dev/null
|
| @@ -1,18 +0,0 @@
|
| -// Copyright (c) 2017, 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.
|
| -
|
| -// Test that type parameters in generic methods can be used in as-expressions.
|
| -
|
| -library generic_methods_simple_as_expression_test;
|
| -
|
| -import "package:expect/expect.dart";
|
| -
|
| -T cast<T>(dynamic obj) {
|
| - return obj as T;
|
| -}
|
| -
|
| -main() {
|
| - Expect.equals(cast<num>(42), 42); //# 01: ok
|
| - cast<String>(42); //# 02: runtime error
|
| -}
|
|
|