Files
sdk/pkg/front_end/testcases/general/constructor_initializer_invalid.dart
T
Johnni Winther f40aac1b75 [cfe] Move general testcases into general/ subfolder
Change-Id: I9bc98033babcf887cca2267606cfe9fadd527b5f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108605
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-11 14:10:17 +00:00

18 lines
435 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 C1 { int f; C1() : ; }
class C2 { int f; C2() : f; }
class C3 { int f; C3() : f++; }
main() {
var c1 = new C1();
c1.toString();
var c2 = new C2();
c2.toString();
var c3 = new C3();
c3.toString();
}