mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 09:43:08 +00:00
9e76983782
This is another reland of 4f8333e80e
.
Third time is the charm.
CoreLibraryReviewExempt: Reland of accepted CL.
Change-Id: I4ea8326af91c168b044d252162571d3fe697e4b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289826
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
18 lines
541 B
Dart
18 lines
541 B
Dart
// Copyright (c) 2013, 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 for dart2js that used to crash in the presence of a
|
|
// super constructor declared external.
|
|
|
|
import "package:expect/expect.dart";
|
|
import 'dart:collection';
|
|
|
|
class Crash extends StringBuffer {
|
|
Crash() : super();
|
|
}
|
|
|
|
void main() {
|
|
Crash expando = new Crash();
|
|
Expect.isTrue(expando is StringBuffer);
|
|
}
|