69df740ea9
Change-Id: I621ac252c5d6f3b157a2f194b7f0b7ad85874e4c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352990 Reviewed-by: Nate Biggs <natebiggs@google.com> Commit-Queue: Mayank Patke <fishythefish@google.com>
20 lines
394 B
Dart
20 lines
394 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();
|
|
}
|
|
|
|
class Class2 {
|
|
var bar;
|
|
factory Class2.bar() => Class2._();
|
|
Class2._();
|
|
}
|
|
|
|
main() {
|
|
Class1.foo().foo;
|
|
Class2.bar().bar;
|
|
}
|