-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
bad-testReport tests in need of updates. When closed, the tests should be considered goodReport tests in need of updates. When closed, the tests should be considered good
Description
This test expects that pattern Square(:final num areaAsNullable)
doesn't match for Square(2)
:
co19/LanguageFeatures/Patterns/type_inference_A31_t03.dart
Lines 39 to 40 in 7b4f3e7
case Square(:final num areaAsNullable): | |
return "match-2"; |
Expect.equals("no match", test1(Square(2))); |
However, areaAsNullable
from Square
actually returns double
, so it should match:
num? get areaAsNullable => areaAsDouble; |
double get areaAsDouble => length * length; |
Metadata
Metadata
Assignees
Labels
bad-testReport tests in need of updates. When closed, the tests should be considered goodReport tests in need of updates. When closed, the tests should be considered good