| Index: tests/language/regress_27164_test.dart
|
| diff --git a/pkg/dev_compiler/test/codegen/language/static_field_override2_test.dart b/tests/language/regress_27164_test.dart
|
| similarity index 51%
|
| copy from pkg/dev_compiler/test/codegen/language/static_field_override2_test.dart
|
| copy to tests/language/regress_27164_test.dart
|
| index 7942c35d74f9d3922e1139fbc3f3d25692c8299d..6f4513f5004ad5664a58c84331c884ae8c8a6887 100644
|
| --- a/pkg/dev_compiler/test/codegen/language/static_field_override2_test.dart
|
| +++ b/tests/language/regress_27164_test.dart
|
| @@ -2,17 +2,19 @@
|
| // 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.
|
|
|
| +// Regression test for issue 27164.
|
| +
|
| import 'package:expect/expect.dart';
|
|
|
| -class Foo {
|
| - static int get x => 42;
|
| - static void set x(value) {}
|
| -}
|
| +String simpleEcho(String arg) => arg;
|
|
|
| -class Bar extends Foo {
|
| - static int x = 12;
|
| +class Echo {
|
| + final echo;
|
| + // Check that the expression simpleEcho is a compile-time constant.
|
| + const Echo() : echo = simpleEcho;
|
| }
|
|
|
| void main() {
|
| - Expect.equals(12, Bar.x);
|
| -}
|
| + Expect.equals("hello", const Echo().echo("hello"));
|
| +}
|
| +
|
|
|