Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012, 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 // A regression test for dart2js bug 6015. | |
| 6 | |
| 7 class Fisk { | |
| 8 foo({b, a: true}) { | |
| 9 if (b == null) return; | |
| 10 throw 'broken'; | |
| 11 } | |
| 12 | |
| 13 bar({a, b: true}) { | |
| 14 if (a == null) return; | |
| 15 throw 'broken'; | |
| 16 } | |
| 17 } | |
| 18 | |
| 19 main() { | |
| 20 new Fisk().foo(a: true); | |
| 21 new Fisk().bar(b: true); | |
| 22 } | |
| OLD | NEW |