blob: 87642bcfbd07202a7d3ed730b56310568af5f72d [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.
// SharedOptions=--enable-experiment=nonfunction-type-aliases
// Test that a private mixin exported via a typedef cannot be used as a class.
import "private_name_library.dart";
/// Class that attempts to use a private mixin as a class via a public typedef
/// name.
class A0 extends PublicMixin {}
// ^
// [cfe] The superclass, '_PrivateMixin', has no unnamed constructor that takes no arguments.
// ^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.EXTENDS_NON_CLASS
void main() {}