dart-sdk/tests/modular/const_extension_type/main.dart
Nicholas Shahan 47b9e3e6df [tests] Add repro for cross module constant
There is an issue with cross module constant extension types that causes
the CFE to crash.

Change-Id: Id6af3a5400e55ecb2534ce71a07c5c1ecb17a46f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335384
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-11-13 22:21:40 +00:00

16 lines
383 B
Dart

// Copyright (c) 2023, 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.
import 'package:expect/expect.dart';
import 'def.dart';
main() {
ExtString x = val;
fn(x);
}
void fn(ExtString es) {
Expect.equals('hello', es.toString());
}