[ddc] Adding test for cross module private symbols as function default values.

Change-Id: I54e29a3883b2e444945574d3d5e03f741c1e8716
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436020
Reviewed-by: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
MarkZ
2025-06-20 14:40:47 -07:00
committed by Commit Queue
parent 842ed5606c
commit 2b1cbb0c88
5 changed files with 25 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
import 's.dart';
Object foo_a({Object foo = s}) {
return foo;
}
+5
View File
@@ -0,0 +1,5 @@
import 's.dart';
Object foo_b({Object foo = s}) {
return foo;
}
+10
View File
@@ -0,0 +1,10 @@
import 'package:expect/expect.dart';
import 'a.dart';
import 'b.dart';
void main() {
var s1 = foo_a();
var s2 = foo_b();
Expect.identical(s1, s2);
Expect.equals(s1, s2);
}
@@ -0,0 +1,4 @@
dependencies:
main: [a, b, expect]
a: s
b: s
+1
View File
@@ -0,0 +1 @@
const s = #_symbol;