Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // Test that inlining in the compiler works with privacy. | |
| 6 | |
| 7 import 'other_library.dart'; | |
| 8 | |
| 9 main() { | |
| 10 Expect.equals(42, foo(new A())); | |
| 11 Expect.throws(() => foo(new B()), (e) => e is NoSuchMethodError); | |
| 12 } | |
| 13 | |
| 14 class B { | |
| 15 _bar() => 42; | |
| 16 } | |
| OLD | NEW |