Sign in
dart
/
sdk.git
/
refs/tags/2.14.0-209.0.dev
/
.
/
pkg
/
front_end
/
testcases
/
runtime_checks_new
/
contravariant_index_assign.dart.textual_outline.expect
blob: 25e6f2f3b25864a59c7ab8550d70c8b8216fdb10 [
file
] [
log
] [
blame
]
// @dart = 2.9
library test
;
typedef
void
F
<
T
>(
T x
);
class
B
<
T
>
{
B
<
T
>
operator
+(
B
<
T
>
other
)
=>
null
;
}
class
C
<
T
>
{
B
<
F
<
T
>>
operator
[](
int
i
)
=>
null
;
void
operator
[]=(
int
i
,
B
<
F
<
T
>>
x
)
{}
}
void
test
(
C
<num>
c
)
{}
main
()
{}