blob: f56d1a2294a100c83acf91a3c009e244cb57c193 [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());
Expect.runtimeIsType<C Function()>(;