We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 842ed56 commit 2b1cbb0Copy full SHA for 2b1cbb0
tests/modular/private_symbols/a.dart
@@ -0,0 +1,5 @@
1
+import 's.dart';
2
+
3
+Object foo_a({Object foo = s}) {
4
+ return foo;
5
+}
tests/modular/private_symbols/b.dart
+Object foo_b({Object foo = s}) {
tests/modular/private_symbols/main.dart
@@ -0,0 +1,10 @@
+import 'package:expect/expect.dart';
+import 'a.dart';
+import 'b.dart';
+void main() {
6
+ var s1 = foo_a();
7
+ var s2 = foo_b();
8
+ Expect.identical(s1, s2);
9
+ Expect.equals(s1, s2);
10
tests/modular/private_symbols/modules.yaml
@@ -0,0 +1,4 @@
+dependencies:
+ main: [a, b, expect]
+ a: s
+ b: s
tests/modular/private_symbols/s.dart
@@ -0,0 +1 @@
+const s = #_symbol;
0 commit comments