blob: 73ebf0d53f681c2b89f73cc020999c2dbb8fcbf7 [file] [log] [blame]
// Copyright (c) 2015, 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.
// @dart = 2.9
// Regression test.
// lib.C.foo has code that references `super.foo=` that does not exist. This
// used to cause a crash.
import "package:expect/expect.dart";
// ^^^
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SUPER_MEMBER
// [cfe] Superclass has no setter named 'foo'.
import "super_dependency_lib.dart" deferred as lib;
main() async {
await lib.loadLibrary();
Expect.throwsNoSuchMethodError(() => new lib.C().foo());
}