Sign in
dart
/
sdk.git
/
refs/tags/2.14.0-347.0.dev
/
.
/
pkg
/
front_end
/
testcases
/
extensions
/
issue39527.dart.textual_outline_modelled.expect
blob: 8a10e4c11cdce14b3288b3ee0e1ccabf9664873e [
file
] [
log
] [
blame
]
// @dart = 2.9
class
C
{
int
value
=
0
;
}
extension
Extension1
on C
{
C
operator
-(
int
val
)
=>
this
;
C
operator
[](
int
index
)
=>
this
..
value
+=
index
+
1
;
void
operator
[]=(
int
index
,
C other
)
=>
this
.
value
+=
other
.
value
+
index
+
1
;
}
main
()
{}