mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 19:18:27 +00:00
Fix duplicate test case.
It's clear from the comments that the first case was meant to test the variable `v` (which has type `Object?`), and the second was meant to test the variable `d` (which has type `dynamic`), but they accidentally were both referring to `v`. Change-Id: I1c36350689d20fa8d86c7d1c66918307f5fe2253 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214132 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
parent
fdf5014697
commit
df6bb1f786
|
@ -302,7 +302,7 @@ void main() {
|
||||||
// Parsed as a generic instantiation, but `d` is not generic function or type.
|
// Parsed as a generic instantiation, but `d` is not generic function or type.
|
||||||
// Being dynamic doesn't help.
|
// Being dynamic doesn't help.
|
||||||
// Would be valid if parsed as operators.
|
// Would be valid if parsed as operators.
|
||||||
expect1(v < X, X > (2));
|
expect1(d < X, X > (2));
|
||||||
// ^^^^^^^^
|
// ^^^^^^^^
|
||||||
// [cfe] unspecified
|
// [cfe] unspecified
|
||||||
// [analyzer] unspecified
|
// [analyzer] unspecified
|
||||||
|
|
Loading…
Reference in a new issue