Files
sdk/tests/language_2/constructor_call_as_function_test.dart
T
Peter von der Ahé f8de9bb52d Update language tests to optional new on constructor invocations
Change-Id: Ibb30489a1ba14e6a336099e820247c30d1882a68
Reviewed-on: https://dart-review.googlesource.com/33721
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2018-01-19 15:26:25 +00:00

14 lines
331 B
Dart

// Copyright (c) 2011, 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 Point {
const Point(this.x, this.y);
final int x;
final int y;
}
main() {
Point p = Point(1, 2);
}