mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
33f0388776
Change-Id: I923b65931de5d7ac56bea0b356474113ebb9a778 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364627 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
15 lines
534 B
Dart
15 lines
534 B
Dart
// 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.
|
|
|
|
// 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";
|
|
import "super_dependency_lib.dart" deferred as lib;
|
|
|
|
main() async {
|
|
await lib.loadLibrary();
|
|
Expect.throwsNoSuchMethodError(() => new lib.C().foo());
|
|
}
|