a09ec46da6
+ fixes for switch and continue Change-Id: I1f4fb9327b9db08eb69f750a66073affe2659f7d Reviewed-on: https://dart-review.googlesource.com/c/81603 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
20 lines
453 B
Dart
20 lines
453 B
Dart
// Copyright (c) 2018, 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.
|
|
|
|
class Class1 {
|
|
var foo;
|
|
Class1.foo();
|
|
}
|
|
|
|
// TODO(johnniwinther): Uncomment this when #34965 is fixed:
|
|
//class Class2 {
|
|
// var bar;
|
|
// factory Class2.bar() => null;
|
|
//}
|
|
|
|
main() {
|
|
new Class1.foo().foo;
|
|
//new Class2.bar().bar;
|
|
}
|