blob: 66d8541240f0a6665e1900480ed398cb73463306 [file] [log] [blame]
// Copyright (c) 2021, 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.
/// @assertion With regard to tear-offs, [] works exactly as if it had been
/// a named constructor, with a corresponding constructor function named
/// [$tearoff].
/// @description Check that [] tearing off works exactly as a corresponding
/// construction function named [$tearoff].
/// @author
// SharedOptions=--enable-experiment=constructor-tearoffs
import "../../Utils/expect.dart";
class C {
C() {}
main() {
Expect.isTrue( is C Function());