| Index: tests/language/abstract_runtime_error_test.dart
|
| diff --git a/tests/language/abstract_runtime_error_test.dart b/tests/language/abstract_runtime_error_test.dart
|
| index 97f71ef6af5ffac451c3757f1f37d0412766c54e..556f9ffeb4ac680551088f8bb94c4fa3ec5c390e 100644
|
| --- a/tests/language/abstract_runtime_error_test.dart
|
| +++ b/tests/language/abstract_runtime_error_test.dart
|
| @@ -12,7 +12,7 @@ import "package:expect/expect.dart";
|
|
|
|
|
| abstract class Interface {
|
| - void foo(); /// 03: static type warning
|
| + void foo(); //# 03: static type warning
|
| }
|
|
|
| abstract class AbstractClass {
|
| @@ -27,19 +27,19 @@ class NonAbstractClass implements Interface {
|
| toString() => 'NonAbstractClass';
|
| }
|
|
|
| -Interface interface() => new Interface(); /// 01: static type warning
|
| +Interface interface() => new Interface(); //# 01: static type warning
|
|
|
| -AbstractClass abstractClass() => new AbstractClass(); /// 02: static type warning
|
| +AbstractClass abstractClass() => new AbstractClass(); //# 02: static type warning
|
|
|
| bool isAbstractClassInstantiationError(e) {
|
| return e is AbstractClassInstantiationError;
|
| }
|
|
|
| void main() {
|
| - Expect.throws(interface, isAbstractClassInstantiationError, // /// 01: continued
|
| - "expected AbstractClassInstantiationError"); // /// 01: continued
|
| - Expect.throws(abstractClass, isAbstractClassInstantiationError, // /// 02: continued
|
| - "expected AbstractClassInstantiationError"); // /// 02: continued
|
| + Expect.throws(interface, isAbstractClassInstantiationError, // //# 01: continued
|
| + "expected AbstractClassInstantiationError"); // //# 01: continued
|
| + Expect.throws(abstractClass, isAbstractClassInstantiationError, // //# 02: continued
|
| + "expected AbstractClassInstantiationError"); // //# 02: continued
|
| Expect.stringEquals('ConcreteSubclass', '${new ConcreteSubclass()}');
|
| Expect.stringEquals('NonAbstractClass', '${new NonAbstractClass()}');
|
| }
|
|
|